Home
last modified time | relevance | path

Searched refs:GrpcEnvironment (Results 1 – 25 of 34) sorted by relevance

12

/external/grpc-grpc/src/csharp/Grpc.Core.Tests/
DGrpcEnvironmentTest.cs32 var env = GrpcEnvironment.AddRef(); in InitializeAndShutdownGrpcEnvironment()
38 GrpcEnvironment.ReleaseAsync().Wait(); in InitializeAndShutdownGrpcEnvironment()
44 var env1 = GrpcEnvironment.AddRef(); in SubsequentInvocations()
45 var env2 = GrpcEnvironment.AddRef(); in SubsequentInvocations()
47 GrpcEnvironment.ReleaseAsync().Wait(); in SubsequentInvocations()
48 GrpcEnvironment.ReleaseAsync().Wait(); in SubsequentInvocations()
54 Assert.AreEqual(0, GrpcEnvironment.GetRefCount()); in InitializeAfterShutdown()
56 var env1 = GrpcEnvironment.AddRef(); in InitializeAfterShutdown()
57 GrpcEnvironment.ReleaseAsync().Wait(); in InitializeAfterShutdown()
59 var env2 = GrpcEnvironment.AddRef(); in InitializeAfterShutdown()
[all …]
DPInvokeTest.cs43GrpcEnvironment.AddRef(); // completion queue requires gRPC environment being initialized. in CompletionQueueCreateSyncDestroyBenchmark()
53 GrpcEnvironment.ReleaseAsync().Wait(); in CompletionQueueCreateSyncDestroyBenchmark()
DNUnitMain.cs36 GrpcEnvironment.SetLogger(new ConsoleLogger()); in Main()
/external/grpc-grpc/src/csharp/Grpc.Core/
DGrpcEnvironment.cs33 public class GrpcEnvironment class
42 static GrpcEnvironment instance;
69 internal static GrpcEnvironment AddRef() in AddRef()
78 instance = new GrpcEnvironment(); in AddRef()
89 GrpcEnvironment instanceToShutdown = null; in ReleaseAsync()
247 GrpcEnvironment.inlineHandlers = inlineHandlers; in SetHandlerInlining()
300 private GrpcEnvironment() in GrpcEnvironment() method in Grpc.Core.GrpcEnvironment
486 … Task.WaitAll(GrpcEnvironment.ShutdownChannelsAsync(), GrpcEnvironment.KillServersAsync()); in HandleShutdown()
DChannel.cs35 static readonly ILogger Logger = GrpcEnvironment.Logger.ForType<Channel>();
42 readonly GrpcEnvironment environment;
72 this.environment = GrpcEnvironment.AddRef(); in Channel()
87 GrpcEnvironment.RegisterChannel(this); in Channel()
242 GrpcEnvironment.UnregisterChannel(this); in ShutdownAsync()
257 await GrpcEnvironment.ReleaseAsync().ConfigureAwait(false); in ShutdownAsync()
268 internal GrpcEnvironment Environment
DServer.cs37 static readonly ILogger Logger = GrpcEnvironment.Logger.ForType<Server>();
43 readonly GrpcEnvironment environment;
72 this.environment = GrpcEnvironment.AddRef(); in Server()
83 GrpcEnvironment.RegisterServer(this); in Server()
217 GrpcEnvironment.UnregisterServer(this); in ShutdownInternalAsync()
229 await GrpcEnvironment.ReleaseAsync().ConfigureAwait(false); in ShutdownInternalAsync()
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/Internal/
DCompletionQueueSafeHandleTest.cs33 GrpcEnvironment.AddRef(); in CreateSyncAndDestroy()
36 GrpcEnvironment.ReleaseAsync().Wait(); in CreateSyncAndDestroy()
42 var env = GrpcEnvironment.AddRef(); in CreateAsyncAndShutdown()
47 GrpcEnvironment.ReleaseAsync().Wait(); in CreateAsyncAndShutdown()
/external/grpc-grpc/src/csharp/Grpc.Microbenchmarks/
DCompletionRegistryBenchmark.cs31 GrpcEnvironment environment;
35 environment = GrpcEnvironment.AddRef(); in Init()
40 GrpcEnvironment.ReleaseAsync().Wait(); in Cleanup()
DSendMessageBenchmark.cs32 GrpcEnvironment environment;
37 environment = GrpcEnvironment.AddRef(); in Init()
42 GrpcEnvironment.ReleaseAsync().Wait(); in Cleanup()
DProgram.cs45 GrpcEnvironment.SetLogger(new ConsoleLogger()); in Main()
/external/grpc-grpc/src/csharp/Grpc.Core/Internal/
DChannelSafeHandle.cs39 GrpcEnvironment.GrpcNativeInit(); in CreateInsecure()
47 GrpcEnvironment.GrpcNativeInit(); in CreateSecure()
84 GrpcEnvironment.GrpcNativeShutdown(); in ReleaseHandle()
DGrpcThreadPool.cs35 static readonly ILogger Logger = GrpcEnvironment.Logger.ForType<GrpcThreadPool>();
39 readonly GrpcEnvironment environment;
62 …public GrpcThreadPool(GrpcEnvironment environment, int poolSize, int completionQueueCount, bool in… in GrpcThreadPool()
217 …dOnlyCollection<CompletionQueueSafeHandle> CreateCompletionQueueList(GrpcEnvironment environment, … in CreateCompletionQueueList()
DCompletionRegistry.cs36 static readonly ILogger Logger = GrpcEnvironment.Logger.ForType<CompletionRegistry>();
38 readonly GrpcEnvironment environment;
45 …public CompletionRegistry(GrpcEnvironment environment, Func<BatchContextSafeHandle> batchContextFa… in CompletionRegistry()
DServerSafeHandle.cs36 GrpcEnvironment.GrpcNativeInit(); in NewServer()
86 GrpcEnvironment.GrpcNativeShutdown(); in ReleaseHandle()
DServerCallHandler.cs41 …static readonly ILogger Logger = GrpcEnvironment.Logger.ForType<UnaryServerCallHandler<TRequest, T…
105 …static readonly ILogger Logger = GrpcEnvironment.Logger.ForType<ServerStreamingServerCallHandler<T…
168 …static readonly ILogger Logger = GrpcEnvironment.Logger.ForType<ClientStreamingServerCallHandler<T…
231 …static readonly ILogger Logger = GrpcEnvironment.Logger.ForType<DuplexStreamingServerCallHandler<T…
DNativeLogRedirector.cs59 var logger = GrpcEnvironment.Logger; in HandleWrite()
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/
DQpsWorker.cs54 GrpcEnvironment.SetLogger(new ConsoleLogger()); in Run()
78 GrpcEnvironment.Logger.Info("Running qps worker server on {0}:{1}", host, boundPort); in RunAsync()
83GrpcEnvironment.Logger.Info("GC collection counts (after shutdown): gen0 {0}, gen1 {1}, gen2 {2}", in RunAsync()
DServerRunners.cs41 static readonly ILogger Logger = GrpcEnvironment.Logger.ForType<ServerRunners>();
143GrpcEnvironment.Logger.Info("[ServerRunner.GetStats] GC collection counts: gen0 {0}, gen1 {1}, gen… in GetStats()
DNUnitMain.cs36 GrpcEnvironment.SetLogger(new ConsoleLogger()); in Main()
DStressTestClient.cs37 static readonly ILogger Logger = GrpcEnvironment.Logger.ForType<StressTestClient>();
80 GrpcEnvironment.SetLogger(new ConsoleLogger()); in Run()
DInteropServer.cs57 GrpcEnvironment.SetLogger(new ConsoleLogger()); in Run()
/external/grpc-grpc/src/csharp/Grpc.HealthCheck.Tests/
DNUnitMain.cs36 GrpcEnvironment.SetLogger(new ConsoleLogger()); in Main()
/external/grpc-grpc/src/csharp/Grpc.Examples.Tests/
DNUnitMain.cs36 GrpcEnvironment.SetLogger(new ConsoleLogger()); in Main()
/external/grpc-grpc/src/csharp/Grpc.Reflection.Tests/
DNUnitMain.cs36 GrpcEnvironment.SetLogger(new ConsoleLogger()); in Main()
/external/grpc-grpc/src/csharp/Grpc.Core/Utils/
DBenchmarkUtil.cs37 var logger = GrpcEnvironment.Logger; in RunBenchmark()

12