Table of Contents

Class GeneratedContractRegistry

Namespace
AnyProtocol
Assembly
AnyProtocol.dll

Stores and resolves generated contract registrations.

public static class GeneratedContractRegistry
Inheritance
GeneratedContractRegistry
Inherited Members

Methods

IsComplete(Type)

Performs the is complete operation.

public static bool IsComplete(Type contractType)

Parameters

contractType Type

The contract type.

Returns

bool

true when the operation succeeds; otherwise, false.

Register(Type, Func<string, ContractDescriptor>, IReadOnlyList<Type>, IReadOnlyList<GeneratedServerMethodRegistration>, Func<IClientInvoker, ContractDescriptorFactory, object>)

Registers .

public static void Register(Type contractType, Func<string, ContractDescriptor> descriptorFactory, IReadOnlyList<Type> serializableTypes, IReadOnlyList<GeneratedServerMethodRegistration> serverMethods, Func<IClientInvoker, ContractDescriptorFactory, object> proxyFactory)

Parameters

contractType Type

The contract type.

descriptorFactory Func<string, ContractDescriptor>

The descriptor factory.

serializableTypes IReadOnlyList<Type>

The serializable types.

serverMethods IReadOnlyList<GeneratedServerMethodRegistration>

The server methods.

proxyFactory Func<IClientInvoker, ContractDescriptorFactory, object>

The proxy factory.

Register(Type, Func<string, ContractDescriptor>, IReadOnlyList<Type>, Func<IClientInvoker, ContractDescriptorFactory, object>)

Registers .

public static void Register(Type contractType, Func<string, ContractDescriptor> descriptorFactory, IReadOnlyList<Type> serializableTypes, Func<IClientInvoker, ContractDescriptorFactory, object> proxyFactory)

Parameters

contractType Type

The contract type.

descriptorFactory Func<string, ContractDescriptor>

The descriptor factory.

serializableTypes IReadOnlyList<Type>

The serializable types.

proxyFactory Func<IClientInvoker, ContractDescriptorFactory, object>

The proxy factory.

Validate(Type, IMessageSerializer)

Validates .

public static void Validate(Type contractType, IMessageSerializer serializer)

Parameters

contractType Type

The contract type.

serializer IMessageSerializer

The serializer.