Show / Hide Table of Contents

    Class ServiceProxy

    Defines a method for creating a service proxy for a given contract type.

    Inheritance
    System.Object
    ServiceProxy
    Implements
    System.IDisposable
    Namespace: Copper.Remoting.Client
    Assembly: Copper.Remoting.Client.dll
    Syntax
    public class ServiceProxy : IDisposable

    Constructors

    View Source

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

    Initializes a new instance of the ServiceProxy class.

    Declaration
    public ServiceProxy(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<TContract>(IRequestSubmitterFactory)

    Creates a service proxy for the given contract type.

    Declaration
    public TContract For<TContract>(IRequestSubmitterFactory requestSubmitterFactory)
        where TContract : class
    Parameters
    Type Name Description
    IRequestSubmitterFactory requestSubmitterFactory

    The request submitter factory.

    Returns
    Type Description
    TContract

    The service proxy.

    Type Parameters
    Name Description
    TContract

    The contract type.

    View Source

    For<TContract>(RequestSubmitterBuilder)

    Creates a service proxy for the given contract type.

    Declaration
    public TContract For<TContract>(RequestSubmitterBuilder requestSubmitterBuilder)
        where TContract : class
    Parameters
    Type Name Description
    RequestSubmitterBuilder requestSubmitterBuilder

    The request submitter builder.

    Returns
    Type Description
    TContract

    The service proxy.

    Type Parameters
    Name Description
    TContract

    The contract type.

    Implements

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