ServiceContractGenerationContext Members

Passed to the IServiceContractGenerationExtension.GenerateContract method to enable the modification of a service contract and its context prior to generating code.

The ServiceContractGenerationContext type exposes the following members.

Public method ServiceContractGenerationContext Overloaded. Initializes a new instance of the ServiceContractGenerationContext class.

Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Public property Contract Gets the System.ServiceModel.Description.ContractDescription for the current contract.
Public property ContractType Gets the System.CodeDom.CodeTypeDeclaration for the current contract.
Public property DuplexCallbackType Gets the System.CodeDom.CodeTypeDeclaration for the duplex callback contract on the service contract.
Public property Operations Gets a collection of System.ServiceModel.Description.OperationContractGenerationContext objects that represent the contract operations.
Public property ServiceContractGenerator Gets the System.ServiceModel.Description.ServiceContractGenerator that is to generate the contract.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft