OperationContractGenerationContext Constructor (ServiceContractGenerator, ServiceContractGenerationContext, OperationDescription, CodeTypeDeclaration, CodeMemberMethod, CodeMemberMethod, CodeMemberMethod)

 

Initializes a new instance of the OperationContractGenerationContext class.

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

public OperationContractGenerationContext(
	ServiceContractGenerator serviceContractGenerator,
	ServiceContractGenerationContext contract,
	OperationDescription operation,
	CodeTypeDeclaration declaringType,
	CodeMemberMethod syncMethod,
	CodeMemberMethod beginMethod,
	CodeMemberMethod endMethod
)

Parameters

serviceContractGenerator
Type: System.ServiceModel.Description.ServiceContractGenerator

The service contract generator that generates the code.

contract
Type: System.ServiceModel.Description.ServiceContractGenerationContext

The contract and its generation context.

operation
Type: System.ServiceModel.Description.OperationDescription

The operation description for the operation to be generated.

declaringType
Type: System.CodeDom.CodeTypeDeclaration

The declaring code type.

syncMethod
Type: System.CodeDom.CodeMemberMethod

The synchronous method.

beginMethod
Type: System.CodeDom.CodeMemberMethod

The asynchronous begin method.

endMethod
Type: System.CodeDom.CodeMemberMethod

The asynchronous end method.

.NET Framework
Available since 3.0
Return to top
Show: