Class Server.ServiceDefinitionCollection
Collection of service definitions.
Inheritance
System.Object
Server.ServiceDefinitionCollection
Implements
System.Collections.Generic.IEnumerable<ServerServiceDefinition>
System.Collections.IEnumerable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Grpc.Core
Assembly: Grpc.Core.dll
Syntax
public class ServiceDefinitionCollection : IEnumerable<ServerServiceDefinition>, IEnumerable
Methods
Add(ServerServiceDefinition)
Adds a service definition to the server. This is how you register handlers for a service with the server. Only call this before Start().
Declaration
public void Add(ServerServiceDefinition serviceDefinition)
Parameters
Type | Name | Description |
---|---|---|
ServerServiceDefinition | serviceDefinition |
GetEnumerator()
Gets enumerator for this collection.
Declaration
public IEnumerator<ServerServiceDefinition> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<ServerServiceDefinition> |
Implements
System.Collections.Generic.IEnumerable<T>.GetEnumerator()
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
Implements
System.Collections.IEnumerable.GetEnumerator()