예제 #1
0
 /// <summary>
 /// Creates gRPC environment.
 /// </summary>
 private GrpcEnvironment()
 {
     GrpcNativeInit();
     completionRegistry = new CompletionRegistry(this);
     threadPool         = new GrpcThreadPool(this, THREAD_POOL_SIZE);
     threadPool.Start();
 }
예제 #2
0
 /// <summary>
 /// Creates gRPC environment.
 /// </summary>
 private GrpcEnvironment()
 {
     GrpcNativeInit();
     completionRegistry = new CompletionRegistry(this);
     threadPool         = new GrpcThreadPool(this, GetThreadPoolSizeOrDefault());
     threadPool.Start();
 }
예제 #3
0
 /// <summary>
 /// Creates gRPC environment.
 /// </summary>
 private GrpcEnvironment()
 {
     GrpcNativeInit();
     batchContextPool = new DefaultObjectPool <BatchContextSafeHandle>(() => BatchContextSafeHandle.Create(this.batchContextPool), batchContextPoolSharedCapacity, batchContextPoolThreadLocalCapacity);
     threadPool       = new GrpcThreadPool(this, GetThreadPoolSizeOrDefault(), GetCompletionQueueCountOrDefault(), inlineHandlers);
     threadPool.Start();
 }
예제 #4
0
 /// <summary>
 /// Creates gRPC environment.
 /// </summary>
 private GrpcEnvironment()
 {
     NativeLogRedirector.Redirect();
     GrpcNativeInit();
     completionRegistry = new CompletionRegistry(this);
     threadPool         = new GrpcThreadPool(this, _threadPoolSize);
     threadPool.Start();
 }
예제 #5
0
 /// <summary>
 /// Creates gRPC environment.
 /// </summary>
 private GrpcEnvironment()
 {
     GrpcLog.RedirectNativeLogs(Console.Error);
     grpcsharp_init();
     threadPool = new GrpcThreadPool(THREAD_POOL_SIZE);
     threadPool.Start();
     // TODO: use proper logging here
     Console.WriteLine("GRPC initialized.");
 }
예제 #6
0
 /// <summary>
 /// Creates gRPC environment.
 /// </summary>
 private GrpcEnvironment()
 {
     NativeLogRedirector.Redirect();
     grpcsharp_init();
     completionRegistry = new CompletionRegistry(this);
     threadPool         = new GrpcThreadPool(this, THREAD_POOL_SIZE);
     threadPool.Start();
     // TODO: use proper logging here
     Logger.Info("gRPC initialized.");
 }
예제 #7
0
 /// <summary>
 /// Creates gRPC environment.
 /// </summary>
 private GrpcEnvironment()
 {
     GrpcNativeInit();
     threadPool = new GrpcThreadPool(this, GetThreadPoolSizeOrDefault(), GetCompletionQueueCountOrDefault());
     threadPool.Start();
 }