Search Results for

    Show / Hide Table of Contents

    Class HandlerOptions<TStorageRecord, TStorageProvider>

    handler registration options

    Inheritance
    object
    HandlerOptions<TStorageRecord, TStorageProvider>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: FastEndpoints
    Assembly: FastEndpoints.Messaging.Remote.dll
    Syntax
    public class HandlerOptions<TStorageRecord, TStorageProvider> where TStorageRecord : class, IEventStorageRecord, new() where TStorageProvider : class, IEventHubStorageProvider<TStorageRecord>
    Type Parameters
    Name Description
    TStorageRecord
    TStorageProvider

    Methods

    RegisterClientStream<T, THandler, TResult>()

    registers a "client stream" command handler this server is hosting.

    Declaration
    public GrpcServiceEndpointConventionBuilder RegisterClientStream<T, THandler, TResult>() where T : class where THandler : class, IClientStreamCommandHandler<T, TResult> where TResult : class
    Returns
    Type Description
    GrpcServiceEndpointConventionBuilder
    Type Parameters
    Name Description
    T

    the type of the incoming item stream

    THandler

    the type of the handler for the incoming stream

    TResult

    the type of the result that will be returned from the handler when the stream ends

    RegisterEventHub<TEvent>(HubMode)

    registers an "event hub" that broadcasts events of the given type to all remote subscribers in an asynchronous manner

    Declaration
    public GrpcServiceEndpointConventionBuilder RegisterEventHub<TEvent>(HubMode mode = HubMode.EventPublisher) where TEvent : class, IEvent
    Parameters
    Type Name Description
    HubMode mode

    the operation mode of this event hub

    Returns
    Type Description
    GrpcServiceEndpointConventionBuilder
    Type Parameters
    Name Description
    TEvent

    the type of event this hub deals with

    RegisterServerStream<TCommand, THandler, TResult>()

    registers a "server stream" command handler this server is hosting.

    Declaration
    public GrpcServiceEndpointConventionBuilder RegisterServerStream<TCommand, THandler, TResult>() where TCommand : class, IServerStreamCommand<TResult> where THandler : class, IServerStreamCommandHandler<TCommand, TResult> where TResult : class
    Returns
    Type Description
    GrpcServiceEndpointConventionBuilder
    Type Parameters
    Name Description
    TCommand

    the type of the incoming command

    THandler

    the type of the handler for the incoming command

    TResult

    the type of the result stream that will be returned from the handler

    Register<TCommand, THandler>()

    registers a "void" command handler this server is hosting.

    Declaration
    public GrpcServiceEndpointConventionBuilder Register<TCommand, THandler>() where TCommand : class, ICommand where THandler : class, ICommandHandler<TCommand>
    Returns
    Type Description
    GrpcServiceEndpointConventionBuilder
    Type Parameters
    Name Description
    TCommand

    the type of the incoming command

    THandler

    the type of the handler for the incoming command

    Register<TCommand, THandler, TResult>()

    registers a "unary" command handler this server is hosting.

    Declaration
    public GrpcServiceEndpointConventionBuilder Register<TCommand, THandler, TResult>() where TCommand : class, ICommand<TResult> where THandler : class, ICommandHandler<TCommand, TResult> where TResult : class
    Returns
    Type Description
    GrpcServiceEndpointConventionBuilder
    Type Parameters
    Name Description
    TCommand

    the type of the incoming command

    THandler

    the type of the handler for the incoming command

    TResult

    the type of the result that will be returned from the handler

    In this article
    Back to top Developed by Đĵ ΝιΓΞΗΛψΚ and contributors / Licensed under MIT / Website generated by DocFX