Show / Hide Table of Contents

    Class ServiceInstanceProxyFactory

    Defines a method for creating a service instance proxy.

    Inheritance
    System.Object
    ServiceInstanceProxyFactory
    Namespace: Copper.Service
    Assembly: Copper.Service.dll
    Syntax
    public class ServiceInstanceProxyFactory

    Constructors

    View Source

    ServiceInstanceProxyFactory(IEnumerable<IFrameworkReceiveInterceptor>, IEnumerable<IReceiveInterceptor>)

    Initializes a new instance of the ServiceInstanceProxyFactory class.

    Declaration
    public ServiceInstanceProxyFactory(IEnumerable<IFrameworkReceiveInterceptor> frameworkReceiveInterceptors, IEnumerable<IReceiveInterceptor> receiveInterceptors)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<IFrameworkReceiveInterceptor> frameworkReceiveInterceptors

    The framework receive interceptors.

    System.Collections.Generic.IEnumerable<IReceiveInterceptor> receiveInterceptors

    The receive interceptors.

    Methods

    View Source

    Create(Type, Object)

    Creates a service instance proxy.

    Declaration
    public object Create(Type contractType, object serviceInstance)
    Parameters
    Type Name Description
    System.Type contractType

    The contract type.

    System.Object serviceInstance

    The service instance.

    Returns
    Type Description
    System.Object

    The service instance proxy.

    View Source

    Create<TContract>(TContract)

    Creates a service instance proxy.

    Declaration
    public TContract Create<TContract>(TContract serviceInstance)
    Parameters
    Type Name Description
    TContract serviceInstance

    The service instance.

    Returns
    Type Description
    TContract

    The service instance proxy.

    Type Parameters
    Name Description
    TContract

    The contract type.

    • View Source
    Back to top Generated by DocFX