Class WcfDataContractResolverConfiguration
Configuration information for setting up WCF System.Runtime.Serialization.DataContractResolver.
Inheritance
System.Object
WcfDataContractResolverConfiguration
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Cqrs.Services
Assembly: Cqrs.dll
Syntax
public class WcfDataContractResolverConfiguration
Constructors
WcfDataContractResolverConfiguration()
Instantiates a new instance of WcfDataContractResolverConfiguration
Declaration
public WcfDataContractResolverConfiguration()
Properties
Current
The current instance of WcfDataContractResolverConfiguration to use.
Declaration
public static WcfDataContractResolverConfiguration Current { get; protected set; }
Property Value
Type | Description |
---|---|
WcfDataContractResolverConfiguration |
DataContracts
Gets or set the data contracts for the system to use.
Declaration
protected IDictionary<Type, IDictionary<string, Type>> DataContracts { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.Type, System.Collections.Generic.IDictionary<System.String, System.Type>> |
Methods
GetDataContracts<TService>(String)
Gets the System.Type of System.Runtime.Serialization.DataContractResolver for the operation named operationName
of the TService
Declaration
public virtual Type GetDataContracts<TService>(string operationName)
Parameters
Type | Name | Description |
---|---|---|
System.String | operationName | The name of the operation. |
Returns
Type | Description |
---|---|
System.Type |
Type Parameters
Name | Description |
---|---|
TService | The System.Type of service. |
RegisterDataContract<TService, TDataContract>(String, WcfDataContractResolverConfiguration.RegistrationHandling)
Register the TDataContract
to use for the operation named operationName
for the TService
.
Declaration
public virtual void RegisterDataContract<TService, TDataContract>(string operationName, WcfDataContractResolverConfiguration.RegistrationHandling registrationHandling = WcfDataContractResolverConfiguration.RegistrationHandling.Replace)where TDataContract : new ()
Parameters
Type | Name | Description |
---|---|---|
System.String | operationName | The name of the operation. |
WcfDataContractResolverConfiguration.RegistrationHandling | registrationHandling | Defaults to Replace |
Type Parameters
Name | Description |
---|---|
TService | The System.Type of service. |
TDataContract | The System.Type of the resolver. |