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

.NET Framework (current version)
 

Initializes a new instance of the OperationContractGenerationContext class using the specified contract generator, contract context, operation description, code type declaration, and method.

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

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

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 synchronization method to be generated.

taskMethod
Type: System.CodeDom.CodeMemberMethod

The task method used.

.NET Framework
Available since 4.5
Return to top
Show: