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

OperationContractGenerationContext Constructor (ServiceContractGenerator, ServiceContractGenerationContext, OperationDescription, CodeTypeDeclaration, CodeMemberMethod, CodeMemberMethod, 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, synchronization method, begin method, end method, and task 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 beginMethod,
	CodeMemberMethod endMethod,
	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.

beginMethod
Type: System.CodeDom.CodeMemberMethod

The asynchronous begin method.

endMethod
Type: System.CodeDom.CodeMemberMethod

The asynchronous end method.

taskMethod
Type: System.CodeDom.CodeMemberMethod

The task method used.

.NET Framework
Available since 4.5
Return to top
Show:
© 2016 Microsoft