當前位置: 首頁>>代碼示例>>C#>>正文


C# Transport.TServerTransport類代碼示例

本文整理匯總了C#中Thrift.Transport.TServerTransport的典型用法代碼示例。如果您正苦於以下問題:C# TServerTransport類的具體用法?C# TServerTransport怎麽用?C# TServerTransport使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


TServerTransport類屬於Thrift.Transport命名空間,在下文中一共展示了TServerTransport類的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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: 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

示例3: 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

示例4: 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

示例5: 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

示例6: 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

示例7: 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

示例8: 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

示例9: TSimpleServer

 public TSimpleServer(TProcessor processor,
       TServerTransport serverTransport,
       TTransportFactory transportFactory)
     : base(processor,
  serverTransport,
  transportFactory,
  transportFactory,
  new TBinaryProtocol.Factory(),
  new TBinaryProtocol.Factory(),
    DefaultLogDelegate)
 {
 }
開發者ID:jgheewala,項目名稱:thrift,代碼行數:12,代碼來源:TSimpleServer.cs

示例10: 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

示例11: 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

示例12: 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 != null) ? logDelegate : DefaultLogDelegate;
        }
開發者ID:ndav,項目名稱:thrift,代碼行數:16,代碼來源:TServer.cs

示例13: MockThriftServer

        public MockThriftServer()
        {
            _handler = new Handler();
            var processor = new ThriftFlumeEventServer.Processor(_handler);
            _serverTransport = new TServerSocket(9090);
            _server = new TThreadedServer(processor, _serverTransport);

            _serveOnSeparateThread = new Thread(_server.Serve);
            _serveOnSeparateThread.Start();
        }
開發者ID:inadler,項目名稱:DotNetFlumeNG.Clients,代碼行數:10,代碼來源:MockThriftServer.cs


注:本文中的Thrift.Transport.TServerTransport類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。