Class Server.ServiceDefinitionCollection

public class ServiceDefinitionCollection : IEnumerable<ServerServiceDefinition>

Collection of service definitions.

Inheritance

Object > Server.ServiceDefinitionCollection

Namespace

Grpc.Core

Assembly

Grpc.Core.dll

Methods

Add(ServerServiceDefinition)

public void Add(ServerServiceDefinition serviceDefinition)

Adds a service definition to the server. This is how you register handlers for a service with the server. Only call this before Start().

Parameter
TypeNameDescription
ServerServiceDefinitionserviceDefinition

GetEnumerator()

public IEnumerator<ServerServiceDefinition> GetEnumerator()

Gets enumerator for this collection.

Returns
TypeDescription
IEnumerator<ServerServiceDefinition>