Class GeneratedContractProxyFactory
- Namespace
- AnyProtocol
- Assembly
- AnyProtocol.dll
Creates generated contract proxy instances.
public sealed class GeneratedContractProxyFactory : IContractProxyFactory
- Inheritance
-
GeneratedContractProxyFactory
- Implements
- Inherited Members
Constructors
GeneratedContractProxyFactory(ContractDescriptorFactory)
Initializes a new instance of the GeneratedContractProxyFactory class.
public GeneratedContractProxyFactory(ContractDescriptorFactory descriptorFactory)
Parameters
descriptorFactoryContractDescriptorFactoryThe descriptor factory.
Methods
Create(Type, IClientInvoker)
Creates .
public object Create(Type contractType, IClientInvoker invoker)
Parameters
contractTypeTypeThe contract type.
invokerIClientInvokerThe invoker.
Returns
- object
The result of the create operation.
Create<TContract>(IClientInvoker)
Creates <t contract>.
public TContract Create<TContract>(IClientInvoker invoker) where TContract : class
Parameters
invokerIClientInvokerThe invoker.
Returns
- TContract
The result of the create<t contract> operation.
Type Parameters
TContractThe contract type.