示例#1
0
 /// <summary>
 /// Creates gRPC environment.
 /// </summary>
 private GrpcEnvironment()
 {
     NativeLogRedirector.Redirect();
     GrpcNativeInit();
     completionRegistry = new CompletionRegistry(this);
     threadPool         = new GrpcThreadPool(this, THREAD_POOL_SIZE);
     threadPool.Start();
 }
示例#2
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.");
 }