Show / Hide Table of Contents

    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.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    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>

    Explicit Interface Implementations

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    Implements

    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    Back to top Generated by DocFX