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