ServiceContractGenerationContext Constructor (ServiceContractGenerator, ContractDescription, CodeTypeDeclaration, CodeTypeDeclaration)

 

Initializes a new instance of the ServiceContractGenerationContext class using the specified contract generator, contract description, and contract code type declaration.

Namespace:   System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public ServiceContractGenerationContext(
	ServiceContractGenerator serviceContractGenerator,
	ContractDescription contract,
	CodeTypeDeclaration contractType,
	CodeTypeDeclaration duplexCallbackType
)

Parameters

serviceContractGenerator
Type: System.ServiceModel.Description.ServiceContractGenerator

The generator that generates the code for the contract.

contract
Type: System.ServiceModel.Description.ContractDescription

The contract description for the contract to be generated.

contractType
Type: System.CodeDom.CodeTypeDeclaration

The System.CodeDom.CodeTypeDeclaration for the contract code to be generated.

duplexCallbackType
Type: System.CodeDom.CodeTypeDeclaration

The System.CodeDom.CodeTypeDeclaration for the duplex contract code to be generated.

.NET Framework
Available since 3.0
Return to top
Show: