Show / Hide Table of Contents

    Class EventPublisher

    Provides the capability to publish events using the MassTransit transport.

    Inheritance
    System.Object
    EventPublisher
    Implements
    IEventPublisher
    System.IDisposable
    Namespace: Copper.Eventing.MassTransit.Common.V1
    Assembly: Copper.Eventing.MassTransit.Common.dll
    Syntax
    public class EventPublisher : IEventPublisher, IDisposable

    Constructors

    View Source

    EventPublisher(IBusControlFactory, EventPublisherSettings, IClientMessageFormatter, IOptions<EventPublisherOptions>)

    Initializes a new instance of the EventPublisher class.

    Declaration
    public EventPublisher(IBusControlFactory busControlFactory, EventPublisherSettings eventPublisherSettings, IClientMessageFormatter clientMessageFormatter, IOptions<EventPublisherOptions> options)
    Parameters
    Type Name Description
    IBusControlFactory busControlFactory

    The bus control factory.

    EventPublisherSettings eventPublisherSettings

    The event publisher settings.

    IClientMessageFormatter clientMessageFormatter

    The client message formatter.

    IOptions<EventPublisherOptions> options

    The event publisher 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

    Publish(MethodInfo, Object[])

    Publishes an event.

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

    The method information of the event to be published.

    System.Object[] arguments

    The arguments of the event to be published.

    Returns
    Type Description
    System.Threading.Tasks.Task

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

    Implements

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