OperationContractGenerationContext Constructors

Definition

Initializes a new instance of the OperationContractGenerationContext class.

Overloads

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

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

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

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

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

Initializes a new instance of the OperationContractGenerationContext class.

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

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.

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

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

C#
public OperationContractGenerationContext(System.ServiceModel.Description.ServiceContractGenerator serviceContractGenerator, System.ServiceModel.Description.ServiceContractGenerationContext contract, System.ServiceModel.Description.OperationDescription operation, System.CodeDom.CodeTypeDeclaration declaringType, System.CodeDom.CodeMemberMethod method);

Parameters

serviceContractGenerator
ServiceContractGenerator

The service contract generator that generates the code.

contract
ServiceContractGenerationContext

The contract and its generation context.

operation
OperationDescription

The operation description for the operation to be generated.

declaringType
CodeTypeDeclaration

The declaring code type.

method
CodeMemberMethod

The method to be generated.

Applies to

.NET Framework 4.8.1 ja muut versiot
Tuote Versiot
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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

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

C#
public OperationContractGenerationContext(System.ServiceModel.Description.ServiceContractGenerator serviceContractGenerator, System.ServiceModel.Description.ServiceContractGenerationContext contract, System.ServiceModel.Description.OperationDescription operation, System.CodeDom.CodeTypeDeclaration declaringType, System.CodeDom.CodeMemberMethod syncMethod, System.CodeDom.CodeMemberMethod taskMethod);

Parameters

serviceContractGenerator
ServiceContractGenerator

The service contract generator that generates the code.

contract
ServiceContractGenerationContext

The contract and its generation context.

operation
OperationDescription

The operation description for the operation to be generated.

declaringType
CodeTypeDeclaration

The declaring code type.

syncMethod
CodeMemberMethod

The synchronization method to be generated.

taskMethod
CodeMemberMethod

The task method used.

Applies to

.NET Framework 4.8.1 ja muut versiot
Tuote Versiot
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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

Initializes a new instance of the OperationContractGenerationContext class.

C#
public OperationContractGenerationContext(System.ServiceModel.Description.ServiceContractGenerator serviceContractGenerator, System.ServiceModel.Description.ServiceContractGenerationContext contract, System.ServiceModel.Description.OperationDescription operation, System.CodeDom.CodeTypeDeclaration declaringType, System.CodeDom.CodeMemberMethod syncMethod, System.CodeDom.CodeMemberMethod beginMethod, System.CodeDom.CodeMemberMethod endMethod);

Parameters

serviceContractGenerator
ServiceContractGenerator

The service contract generator that generates the code.

contract
ServiceContractGenerationContext

The contract and its generation context.

operation
OperationDescription

The operation description for the operation to be generated.

declaringType
CodeTypeDeclaration

The declaring code type.

syncMethod
CodeMemberMethod

The synchronous method.

beginMethod
CodeMemberMethod

The asynchronous begin method.

endMethod
CodeMemberMethod

The asynchronous end method.

Applies to

.NET Framework 4.8.1 ja muut versiot
Tuote Versiot
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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

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.

C#
public OperationContractGenerationContext(System.ServiceModel.Description.ServiceContractGenerator serviceContractGenerator, System.ServiceModel.Description.ServiceContractGenerationContext contract, System.ServiceModel.Description.OperationDescription operation, System.CodeDom.CodeTypeDeclaration declaringType, System.CodeDom.CodeMemberMethod syncMethod, System.CodeDom.CodeMemberMethod beginMethod, System.CodeDom.CodeMemberMethod endMethod, System.CodeDom.CodeMemberMethod taskMethod);

Parameters

serviceContractGenerator
ServiceContractGenerator

The service contract generator that generates the code.

contract
ServiceContractGenerationContext

The contract and its generation context.

operation
OperationDescription

The operation description for the operation to be generated.

declaringType
CodeTypeDeclaration

The declaring code type.

syncMethod
CodeMemberMethod

The synchronization method to be generated.

beginMethod
CodeMemberMethod

The asynchronous begin method.

endMethod
CodeMemberMethod

The asynchronous end method.

taskMethod
CodeMemberMethod

The task method used.

Applies to

.NET Framework 4.8.1 ja muut versiot
Tuote Versiot
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1