• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# TProcessor类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中TProcessor的典型用法代码示例。如果您正苦于以下问题:C# TProcessor类的具体用法?C# TProcessor怎么用?C# TProcessor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



TProcessor类属于命名空间,在下文中一共展示了TProcessor类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: TServer

		/**
		 * Default constructors.
		 */

		public TServer(TProcessor processor,
		               TServerTransport serverTransport)
			: this(
				processor, serverTransport, new TTransportFactory(), new TTransportFactory(), new TBinaryProtocol.Factory(),
				new TBinaryProtocol.Factory(), DefaultLogDelegate)
		{
		}
开发者ID:starckgates,项目名称:ElasticSearch.Net,代码行数:11,代码来源:TServer.cs


示例2: TThreadedServer

 public TThreadedServer(TProcessor processor, TServerTransport serverTransport)
     : this(new TSingletonProcessorFactory(processor), serverTransport,
      new TTransportFactory(), new TTransportFactory(),
      new TBinaryProtocol.Factory(), new TBinaryProtocol.Factory(),
      DEFAULT_MAX_THREADS, DefaultLogDelegate)
 {
 }
开发者ID:ConfusedReality,项目名称:pkg_serialization_thrift,代码行数:7,代码来源:TThreadedServer.cs


示例3: TZmqServer

		public TZmqServer (TProcessor processor, Context ctx, String endpoint, SocketType sockType)
		{
			new TSimpleServer (processor,null);
			_socket = ctx.Socket (sockType);
			_socket.Bind (endpoint);
			_processor = processor;
		}
开发者ID:ConfusedReality,项目名称:pkg_serialization_thrift,代码行数:7,代码来源:TZmqServer.cs


示例4: TThreadPoolServer

		public TThreadPoolServer(TProcessor processor, TServerTransport serverTransport)
			:this(processor, serverTransport,
				 new TTransportFactory(), new TTransportFactory(),
				 new TBinaryProtocol.Factory(), new TBinaryProtocol.Factory(),
				 DEFAULT_MIN_THREADS, DEFAULT_MAX_THREADS, DefaultLogDelegate)
		{
		}
开发者ID:cc13ny,项目名称:Impala,代码行数:7,代码来源:TThreadPoolServer.cs


示例5: TThreadedServer

        public TThreadedServer(TProcessor processor, TServerTransport serverTransport, LogDelegate logDelegate)
            : this(processor, serverTransport,
				 new TTransportFactory(), new TTransportFactory(),
				 new TBinaryProtocol.Factory(), new TBinaryProtocol.Factory(),
				 DEFAULT_MAX_THREADS, logDelegate)
        {
        }
开发者ID:vicaya,项目名称:thrift,代码行数:7,代码来源:TThreadedServer.cs


示例6: TSimpleServer

		public TSimpleServer(TProcessor processor,
		                     TServerTransport serverTransport,
		                     LogDelegate logDel)
			: base(
				processor, serverTransport, new TTransportFactory(), new TTransportFactory(), new TBinaryProtocol.Factory(),
				new TBinaryProtocol.Factory(), logDel)
		{
		}
开发者ID:starckgates,项目名称:ElasticSearch.Net,代码行数:8,代码来源:TSimpleServer.cs


示例7: TProcessorSingletonFactory

    public TProcessorSingletonFactory(TProcessor processor)
    {
      if (processor == null)
      {
          throw new ArgumentNullException("processor");
      }

      _processor = processor;
    }
开发者ID:diogojc,项目名称:thrift,代码行数:9,代码来源:TProcessorSingletonFactory.cs


示例8: TThreadPoolServer

        public TThreadPoolServer(TProcessor processor,
								 TServerTransport serverTransport,
								 TTransportFactory transportFactory,
								 TProtocolFactory protocolFactory)
            : this(processor, serverTransport,
				 transportFactory, transportFactory,
				 protocolFactory, protocolFactory,
				 DEFAULT_MIN_THREADS, DEFAULT_MAX_THREADS)
        {
        }
开发者ID:shigin,项目名称:thrift,代码行数:10,代码来源:TThreadPoolServer.cs


示例9: TThreadPoolServer

 public TThreadPoolServer(TProcessor processor,
  TServerTransport serverTransport,
  TTransportFactory transportFactory,
  TProtocolFactory protocolFactory)
     : this(new TSingletonProcessorFactory(processor), serverTransport,
        transportFactory, transportFactory,
        protocolFactory, protocolFactory,
        DEFAULT_MIN_THREADS, DEFAULT_MAX_THREADS, DefaultLogDelegate)
 {
 }
开发者ID:ConfusedReality,项目名称:pkg_serialization_thrift,代码行数:10,代码来源:TThreadPoolServer.cs


示例10: TServer

        public TServer(TProcessor processor,
						  TServerTransport serverTransport,
						  TTransportFactory transportFactory)
            : this(processor,
				 serverTransport,
				 transportFactory,
				 transportFactory,
				 new TBinaryProtocol.Factory(),
				 new TBinaryProtocol.Factory())
        {
        }
开发者ID:KirinDave,项目名称:powerset_thrift,代码行数:11,代码来源:TServer.cs


示例11: TSimpleServer

		public TSimpleServer(TProcessor processor,
						  TServerTransport serverTransport,
						  TTransportFactory transportFactory)
			:base(processor,
				 serverTransport,
				 transportFactory,
				 transportFactory,
				 new TBinaryProtocol.Factory(),
				 new TBinaryProtocol.Factory(),
			     DefaultLogDelegate)
		{
		}
开发者ID:kenangell,项目名称:fluentcassandra,代码行数:12,代码来源:TSimpleServer.cs


示例12: TThreadPoolServer

        public TThreadPoolServer(TProcessor processor,
								 TServerTransport serverTransport,
								 TTransportFactory inputTransportFactory,
								 TTransportFactory outputTransportFactory,
								 TProtocolFactory inputProtocolFactory,
								 TProtocolFactory outputProtocolFactory,
								 int minThreadPoolThreads, int maxThreadPoolThreads, LogDelegate logDel)
            : base(processor, serverTransport, inputTransportFactory, outputTransportFactory,
				  inputProtocolFactory, outputProtocolFactory, logDel)
        {
            if (!ThreadPool.SetMaxThreads(maxThreadPoolThreads, maxThreadPoolThreads))
            {
                throw new Exception("Error: could not SetMaxThreads in ThreadPool");
            }
        }
开发者ID:trayburn,项目名称:EverGTD,代码行数:15,代码来源:TThreadPoolServer.cs


示例13: THttpHandler

 public THttpHandler(TProcessor processor, TProtocolFactory inputProtocolFactory, TProtocolFactory outputProtocolFactory)
 {
     this.processor = processor;
     this.inputProtocolFactory = inputProtocolFactory;
     this.outputProtocolFactory = outputProtocolFactory;
 }
开发者ID:GDGroup,项目名称:thrift,代码行数:6,代码来源:THttpHandler.cs


示例14: TServer

 public TServer(TProcessor processor,
     TServerTransport serverTransport,
     TTransportFactory inputTransportFactory,
     TTransportFactory outputTransportFactory,
     TProtocolFactory inputProtocolFactory,
     TProtocolFactory outputProtocolFactory,
     LogDelegate logDelegate)
 {
     this.processorFactory = new TSingletonProcessorFactory(processor);
     this.serverTransport = serverTransport;
     this.inputTransportFactory = inputTransportFactory;
     this.outputTransportFactory = outputTransportFactory;
     this.inputProtocolFactory = inputProtocolFactory;
     this.outputProtocolFactory = outputProtocolFactory;
     this.logDelegate = (logDelegate != null) ? logDelegate : DefaultLogDelegate;
 }
开发者ID:netcrack,项目名称:thrift,代码行数:16,代码来源:TServer.cs


示例15: TSimpleServer

        public TSimpleServer(TProcessor processor,
						  TServerTransport serverTransport)
            : base(processor, serverTransport, new TTransportFactory(), new TTransportFactory(), new TBinaryProtocol.Factory(), new TBinaryProtocol.Factory())
        {
        }
开发者ID:KirinDave,项目名称:powerset_thrift,代码行数:5,代码来源:TSimpleServer.cs


示例16: TServer

		public TServer(TProcessor processor,
						  TServerTransport serverTransport,
						  TTransportFactory inputTransportFactory,
						  TTransportFactory outputTransportFactory,
						  TProtocolFactory inputProtocolFactory,
						  TProtocolFactory outputProtocolFactory,
						  LogDelegate logDelegate)
		{
			this.processor = processor;
			this.serverTransport = serverTransport;
			this.inputTransportFactory = inputTransportFactory;
			this.outputTransportFactory = outputTransportFactory;
			this.inputProtocolFactory = inputProtocolFactory;
			this.outputProtocolFactory = outputProtocolFactory;
			this.logDelegate = logDelegate;
		}
开发者ID:kenangell,项目名称:fluentcassandra,代码行数:16,代码来源:TServer.cs


示例17: TSingletonProcessorFactory

 public TSingletonProcessorFactory(TProcessor processor)
 {
     processor_ = processor;
 }
开发者ID:ConfusedReality,项目名称:pkg_serialization_thrift,代码行数:4,代码来源:TSingletonProcessorFactory.cs


示例18: RegisterProcessor

 /**
  * 'Register' a service with this TMultiplexedProcessor. This allows us to broker
  * requests to individual services by using the service name to select them at request time.
  *
  * Args:
  * - serviceName    Name of a service, has to be identical to the name
  *                  declared in the Thrift IDL, e.g. "WeatherReport".
  * - processor      Implementation of a service, usually referred to as "handlers",
  *                  e.g. WeatherReportHandler implementing WeatherReport.Iface.
  */
 public void RegisterProcessor(String serviceName, TProcessor processor)
 {
     ServiceProcessorMap.Add(serviceName, processor);
 }
开发者ID:ConfusedReality,项目名称:pkg_serialization_thrift,代码行数:14,代码来源:TMultiplexedProcessor.cs


示例19: Release

 public void Release(TProcessor processor)
 {
 }
开发者ID:diogojc,项目名称:thrift,代码行数:3,代码来源:TProcessorSingletonFactory.cs


示例20: WordbookHandler

 public WordbookHandler()
 {
     this.processor = new WordbookThriftService.Processor(WordbookService);
     this.inputProtocolFactory = this.outputProtocolFactory = new TJSONProtocol.Factory();
     //this.inputProtocolFactory = this.outputProtocolFactory = new TBinaryProtocol.Factory();
 }
开发者ID:kyotsutokyo,项目名称:wordbook_web,代码行数:6,代码来源:WordbookHandler.ashx.cs



注:本文中的TProcessor类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# TRegistroEDI类代码示例发布时间:2022-05-24
下一篇:
C# TPhieuNhapxuatthuoc类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap