System.ServiceModel 4.0.0.0 System.Object System.ServiceModel.IExtensibleObject<System.ServiceModel.OperationContext>

Use the from within a service operation to access the current operation execution environment. In particular, the operation context is used to access callback channels in duplex services, to store extra state data across portions of the operations, and to access incoming message headers and properties as well as add outgoing message headers and properties.

For more information about using extensions to store state data, see Extensible Objects.

The has the following properties and methods.

The property returns the object representing the current execution context.

The property returns the security environment under which the method executes.

The property gets the operation's .

The property returns an extension collection for the current .

The property returns the object that manages the service.

The property returns a value that indicates whether the method has supporting tokens, if so, the property gets them.

The , , and properties get these items from the incoming message.

The event is fired when the operation has completed.

The and properties get these items for the outbound message.

The property returns the implementation for the method.

The property returns the associated with the operation.

The property returns the session identifier for the current channel and object.

The method returns a callback channel to the caller in the case of duplex communication.

The method commits the current transaction.

Provides access to the execution context of a service method.

- Constructor
  4.0.0.0

  Use the constructor to create a new operation context within the scope of which the proxy is associated in order to modify outbound items such as headers.

  Initializes a new instance of the class that uses the specified in a client application.

  The used to create a new client .
- Property
  4.0.0.0
  System.ServiceModel.IContextChannel To be added. To be added.

  Gets the channel associated with the current object.

- Property
  4.0.0.0
  System.ServiceModel.OperationContext To be added.

  Use the property to obtain the execution and message context for the current method.

  Gets or sets the execution context for the current thread.

- Property
  4.0.0.0
  System.ServiceModel.Dispatcher.EndpointDispatcher To be added. To be added.

  Gets or sets the endpoint dispatcher for the endpoint to inspect or modify.

- Property
  4.0.0.0
  System.ServiceModel.IExtensionCollection<System.ServiceModel.OperationContext> To be added.

  Use the property to obtain a collection of all extensions of the used to modify the context or add custom state. For more information about extensions, see Extensible Objects.

  Gets the collection of service extensions from the current message context.

- Method
  4.0.0.0
  T

  Call the property to obtain a channel that you can use to call operations on the client instance that called the service.

  Gets a channel to the client instance that called the current operation.

  A channel to the client instance that called the operation of the type specified in the property.

  The type of channel used to call back to the client.
- Property
  4.0.0.0
  System.Boolean To be added. To be added.

  Gets a value that indicates whether the incoming message has supporting tokens.

- Property
  4.0.0.0
  System.ServiceModel.ServiceHostBase To be added. To be added.

  Gets the for the current service object.

- Property
  4.0.0.0
  System.ServiceModel.Channels.MessageHeaders To be added.

  Use this property to inspect or modify the request headers that arrive at a service operation or reply headers that arrive at a client proxy.

  Gets the incoming message headers for the .

- Property
  4.0.0.0
  System.ServiceModel.Channels.MessageProperties To be added.

  Use this property to inspect or modify the message properties for a request message in a service operation or a reply message in a client proxy.

  Gets the message properties for the incoming message in the .

- Property
  4.0.0.0
  System.ServiceModel.Channels.MessageVersion To be added.

  Use this property to inspect the SOAP version of the request message that arrives at a service operation or the SOAP version of the reply message that arrives at a client proxy.

  Gets the incoming SOAP message version for the .

- Property
  4.0.0.0
  System.ServiceModel.InstanceContext To be added.

  Use the property to access the run-time object that manages the current service object.

  Gets the object that manages the current service instance.

- Property
  4.0.0.0
  System.Boolean To be added. To be added.

  This property is intended for system use and should not be called by users.

- Event
  4.0.0.0
  System.EventHandler

  Use the event to dispose parameters or a return value if you set to false. Normally you set to false to prevent indigo2 from calling on the parameter and return value objects. However, if some parameters need to be preserved while others need to be disposed, this event is the best place to dispose those parameters.

  Also, with duplex bindings, this event can be used to send a request on the callback channel after the reply for the current operation is sent.

  If a caller is listening for the event for an operation, it is possible to block when the response is received. The proper way to handle this is to schedule work on another thread when is raised and then immediately return from that event handler.

  Occurs when the operation has completed.

- Property
  4.0.0.0
  System.ServiceModel.Channels.MessageHeaders To be added.

  Use this property to add reply headers that are sent by a service operation or request headers that are sent by a indigo2 client object.

  Gets the outgoing message headers for the active .

- Property
  4.0.0.0
  System.ServiceModel.Channels.MessageProperties To be added.

  Use this property to add message properties for a reply message from a service operation or message properties for a request message from a client proxy.

  Gets the message properties for the outbound message in the active .

- Property
  4.0.0.0
  System.ServiceModel.Channels.RequestContext To be added.

  One-way operations are do not have a request context.

  Gets or sets the implementation for this method.

- Property
  4.0.0.0
  System.ServiceModel.ServiceSecurityContext To be added. To be added.

  Gets or sets the within which this method executes.

- Property
  4.0.0.0
  System.String To be added. To be added.

  Gets the used to identify the current session.

- Method
  4.0.0.0
  System.Void

  This is only useful in operations that set to false. Typically, services do this on some but not all operations. When is false the transaction completes automatically. Use in cases where it is not possible to determine at design-time whether an operation needs to complete the transaction.

  Commits the currently executing transaction.

- Property
  4.0.0.0
  System.Collections.Generic.ICollection<System.ServiceModel.Security.SupportingTokenSpecification> To be added. To be added.

  Gets a of type .