Show / Hide Table of Contents

    Class EventsProxy

    Defines a method for creating an events proxy for a given contract type.

    Inheritance
    System.Object
    EventsProxy
    Implements
    System.IDisposable
    Namespace: Copper.Eventing.Service
    Assembly: Copper.Eventing.Service.dll
    Syntax
    public class EventsProxy : IDisposable

    Constructors

    View Source

    EventsProxy(IEnumerable<IFrameworkSendInterceptor>, IEnumerable<ISendInterceptor>)

    Initializes a new instance of the EventsProxy class.

    Declaration
    public EventsProxy(IEnumerable<IFrameworkSendInterceptor> frameworkSendInterceptors, IEnumerable<ISendInterceptor> sendInterceptors)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<IFrameworkSendInterceptor> frameworkSendInterceptors

    The framework send interceptors.

    System.Collections.Generic.IEnumerable<ISendInterceptor> sendInterceptors

    The send interceptors.

    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

    For<TEvents>(EventPublisherBuilder)

    Creates an events proxy for the given contract type.

    Declaration
    public TEvents For<TEvents>(EventPublisherBuilder eventPublisherBuilder)
        where TEvents : class
    Parameters
    Type Name Description
    EventPublisherBuilder eventPublisherBuilder

    The event publisher builder.

    Returns
    Type Description
    TEvents

    The service proxy.

    Type Parameters
    Name Description
    TEvents

    The contract type.

    View Source

    For<TEvents>(IEventPublisherFactory)

    Creates an events proxy for the given contract type.

    Declaration
    public TEvents For<TEvents>(IEventPublisherFactory eventPublisherFactory)
        where TEvents : class
    Parameters
    Type Name Description
    IEventPublisherFactory eventPublisherFactory

    The event publisher factory.

    Returns
    Type Description
    TEvents

    The service proxy.

    Type Parameters
    Name Description
    TEvents

    The contract type.

    Implements

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