Encapsulates initialization and shutdown of gRPC library.
More...
|
static void | Initialize () |
| Makes sure GRPC environment is initialized. Subsequent invocations don't have any effect unless you call Shutdown first. Although normal use cases assume you will call this just once in your application's lifetime (and call Shutdown once you're done), for the sake of easier testing it's allowed to initialize the environment again after it has been successfully shutdown. More...
|
|
static void | Shutdown () |
| Shuts down the GRPC environment if it was initialized before. Repeated invocations have no effect. More...
|
|
Encapsulates initialization and shutdown of gRPC library.
static void Grpc.Core.GrpcEnvironment.Initialize |
( |
| ) |
|
|
inlinestatic |
Makes sure GRPC environment is initialized. Subsequent invocations don't have any effect unless you call Shutdown first. Although normal use cases assume you will call this just once in your application's lifetime (and call Shutdown once you're done), for the sake of easier testing it's allowed to initialize the environment again after it has been successfully shutdown.
static void Grpc.Core.GrpcEnvironment.Shutdown |
( |
| ) |
|
|
inlinestatic |
Shuts down the GRPC environment if it was initialized before. Repeated invocations have no effect.
The documentation for this class was generated from the following file:
- src/csharp/Grpc.Core/GrpcEnvironment.cs