Show / Hide Table of Contents

    Class EngineProxy

    Provides the capability to create Engine proxies.

    Inheritance
    System.Object
    EngineProxy
    Implements
    IEngineProxy
    System.IDisposable
    Namespace: Copper.Conventions.Method.Service.V1
    Assembly: Copper.Conventions.Method.Service.dll
    Syntax
    public class EngineProxy : IEngineProxy, IDisposable

    Constructors

    View Source

    EngineProxy(ServiceProxy, IEngineRequestSubmitterBuilderFactory, IServiceContextProvider)

    Initializes a new instance of the EngineProxy class.

    Declaration
    public EngineProxy(ServiceProxy serviceProxy, IEngineRequestSubmitterBuilderFactory engineRequestSubmitterBuilderFactory, IServiceContextProvider serviceContextProvider)
    Parameters
    Type Name Description
    ServiceProxy serviceProxy

    The serviceProxy.

    IEngineRequestSubmitterBuilderFactory engineRequestSubmitterBuilderFactory
    IServiceContextProvider serviceContextProvider

    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>()

    Creates an Engine proxy for the given contract type.

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

    The contract type.

    View Source

    For<TContract>(Action<RequestSubmitterBuilder>)

    Creates an Engine proxy for the given contract type.

    Declaration
    public TContract For<TContract>(Action<RequestSubmitterBuilder> requestSubmitterBuilderConfigureDelegate)
        where TContract : class
    Parameters
    Type Name Description
    System.Action<RequestSubmitterBuilder> requestSubmitterBuilderConfigureDelegate

    The request submitter builder configure delegate.

    Returns
    Type Description
    TContract
    Type Parameters
    Name Description
    TContract

    The contract type.

    View Source

    For<TContract>(Func<RequestSubmitterBuilder>)

    Creates an Engine proxy for the given contract type.

    Declaration
    public TContract For<TContract>(Func<RequestSubmitterBuilder> requestSubmitterBuilderFactory)
        where TContract : class
    Parameters
    Type Name Description
    System.Func<RequestSubmitterBuilder> requestSubmitterBuilderFactory

    The request submitter builder factory.

    Returns
    Type Description
    TContract
    Type Parameters
    Name Description
    TContract

    The contract type.

    Implements

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