Click or drag to resize
GrpcEnvironment Class
Encapsulates initialization and shutdown of gRPC library.
Inheritance Hierarchy
SystemObject
  Grpc.CoreGrpcEnvironment

Namespace: Grpc.Core
Assembly: Grpc.Core (in Grpc.Core.dll) Version: 1.0.0
Syntax
public class GrpcEnvironment

The GrpcEnvironment type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberLogger
Gets application-wide logger used by gRPC.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberKillServersAsync
Requests immediate shutdown of all servers created by the current process.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberSetCompletionQueueCount
Sets the number of completion queues in the gRPC thread pool that polls for internal RPC events. Can be only invoke before the GrpcEnviroment is started and cannot be changed afterwards. Setting the number of completions queues is an advanced setting and you should only use it if you know what you are doing. Most users should rely on the default value provided by gRPC library. Note: this method is part of an experimental API that can change or be removed without any prior notice.
Public methodStatic memberSetLogger
Sets the application-wide logger that should be used by gRPC.
Public methodStatic memberSetThreadPoolSize
Sets the number of threads in the gRPC thread pool that polls for internal RPC events. Can be only invoke before the GrpcEnviroment is started and cannot be changed afterwards. Setting thread pool size is an advanced setting and you should only use it if you know what you are doing. Most users should rely on the default value provided by gRPC library. Note: this method is part of an experimental API that can change or be removed without any prior notice.
Public methodStatic memberShutdownChannelsAsync
Requests shutdown of all channels created by the current process.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also