Exemple #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();
 }
Exemple #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.");
 }