Show / Hide Table of Contents

    Class RequestSubmitter

    Provides the capability to submit service requests using the MassTransit transport.

    Inheritance
    System.Object
    RequestSubmitter
    Implements
    IRequestSubmitter
    System.IDisposable
    Namespace: Copper.Remoting.MassTransit.Common.V1
    Assembly: Copper.Remoting.MassTransit.Common.dll
    Syntax
    public class RequestSubmitter : IRequestSubmitter, IDisposable

    Constructors

    View Source

    RequestSubmitter(IBusControlFactory, RequestSubmitterSettings, IClientMessageFormatter, IOptions<RequestSubmitterOptions>)

    Initializes a new instance of the RequestSubmitter class.

    Declaration
    public RequestSubmitter(IBusControlFactory busControlFactory, RequestSubmitterSettings requestSubmitterSettings, IClientMessageFormatter clientMessageFormatter, IOptions<RequestSubmitterOptions> messagingTransportOptions)
    Parameters
    Type Name Description
    IBusControlFactory busControlFactory

    The bus control factory.

    RequestSubmitterSettings requestSubmitterSettings

    The request submitter settings.

    IClientMessageFormatter clientMessageFormatter

    The client message formatter.

    IOptions<RequestSubmitterOptions> messagingTransportOptions

    The messaging transport options.

    Properties

    View Source

    IsFaulted

    Gets a value indicating whether this instance is faulted.

    Declaration
    public bool IsFaulted { get; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is faulted; otherwise, false.

    Methods

    View Source

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()
    View Source

    Dispose(Boolean)

    Releases unmanaged and - optionally - managed resources.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    true to release both managed and unmanaged resources; false to release only unmanaged resources.

    View Source

    Request(MethodInfo, Object[])

    Submits a request-response type service request.

    Declaration
    public async Task<object> Request(MethodInfo methodInfo, object[] arguments)
    Parameters
    Type Name Description
    System.Reflection.MethodInfo methodInfo

    The method information of the method to be invoked on the service.

    System.Object[] arguments

    The arguments of the method to be invoked on the service.

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

    A System.Threading.Tasks.Task that represents outstanding operation. The result of the Task is the value returned by the service.

    Exceptions
    Type Condition
    System.ObjectDisposedException

    RequestSubmitter

    View Source

    RequestOneWay(MethodInfo, Object[])

    Submits a one-way type service request.

    Declaration
    public async Task RequestOneWay(MethodInfo methodInfo, object[] arguments)
    Parameters
    Type Name Description
    System.Reflection.MethodInfo methodInfo

    The method information of the method to be invoked on the service.

    System.Object[] arguments

    The arguments of the method to be invoked on the service.

    Returns
    Type Description
    System.Threading.Tasks.Task

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

    Exceptions
    Type Condition
    System.ObjectDisposedException

    RequestSubmitter

    Implements

    IRequestSubmitter
    System.IDisposable
    • View Source
    Back to top Generated by DocFX