Class GeneratedContractDescriptorRegistry
- Namespace
- AnyProtocol
- Assembly
- AnyProtocol.dll
Stores and resolves generated contract descriptor registrations.
public static class GeneratedContractDescriptorRegistry
- Inheritance
-
GeneratedContractDescriptorRegistry
- Inherited Members
Methods
IsRegistered(Type)
Performs the is registered operation.
public static bool IsRegistered(Type contractType)
Parameters
contractTypeTypeThe contract type.
Returns
- bool
true when the operation succeeds; otherwise, false.
Register(Type, Func<string, ContractDescriptor>)
Registers .
public static void Register(Type contractType, Func<string, ContractDescriptor> factory)
Parameters
contractTypeTypeThe contract type.
factoryFunc<string, ContractDescriptor>The factory used to create the instance.