Show / Hide Table of Contents

    Class RequestReceiver

    Represents an endpoint that listens for requests for a given service contract when started using the Service Fabric Remoting transport.

    Inheritance
    System.Object
    RequestReceiver
    Implements
    IRequestReceiver
    IEndpoint
    Namespace: Copper.Remoting.FabricTransportRemoting.Common.V1
    Assembly: Copper.Remoting.FabricTransportRemoting.Common.dll
    Syntax
    public class RequestReceiver : IRequestReceiver, IEndpoint

    Constructors

    View Source

    RequestReceiver(RequestReceiverSettings)

    Initializes a new instance of the RequestReceiver class.

    Declaration
    public RequestReceiver(RequestReceiverSettings requestReceiverSettings)
    Parameters
    Type Name Description
    RequestReceiverSettings requestReceiverSettings

    The request receiver settings.

    Methods

    View Source

    RetrieveEndpointMetadata()

    Retrieves the endpoint's metadata.

    Declaration
    public EndpointMetadata RetrieveEndpointMetadata()
    Returns
    Type Description
    EndpointMetadata

    The endpoint's metadata.

    View Source

    Start<TContract>(TContract)

    Declaration
    public async Task<string> Start<TContract>(TContract instance)
        where TContract : class
    Parameters
    Type Name Description
    TContract instance

    The instance implementing the service contract.

    Returns
    Type Description
    System.Threading.Tasks.Task<System.String>

    A System.Threading.Tasks.Task that represents outstanding operation. The result of the System.Threading.Tasks.Task is the endpoint System.String.

    Type Parameters
    Name Description
    TContract

    The service contract type.

    View Source

    Stop()

    Stops the endpoint, causing it to not receive any requests.

    Declaration
    public async Task Stop()
    Returns
    Type Description
    System.Threading.Tasks.Task

    A System.Threading.Tasks.Task that represents outstanding operation.

    Implements

    IRequestReceiver
    IEndpoint
    • View Source
    Back to top Generated by DocFX