Show / Hide Table of Contents

    Interface IServiceMethodProvider<TService>

    Defines a contract for specifying methods for TService.

    Namespace: Grpc.AspNetCore.Server.Model
    Assembly: Grpc.AspNetCore.Server.dll
    Syntax
    public interface IServiceMethodProvider<TService>
        where TService : class
    Type Parameters
    Name Description
    TService
    Remarks

    On application initialization, gRPC invokes all registered instances of IServiceMethodProvider<TService> to perform method discovery. IServiceMethodProvider<TService> instances are invoked in the order they are registered.

    Methods

    OnServiceMethodDiscovery(ServiceMethodProviderContext<TService>)

    Called to execute the provider.

    Declaration
    void OnServiceMethodDiscovery(ServiceMethodProviderContext<TService> context)
    Parameters
    Type Name Description
    ServiceMethodProviderContext<TService> context

    The ServiceMethodProviderContext<TService>.

    Back to top Generated by DocFX