Share via


ClientTransaction.ResponseReceived

 
Communications Server 2007 Server SDK Documentation

ClientTransaction.ResponseReceived

The ResponseReceived event is raised when a response message for the request sent by the ClientTransaction object has been received.

[C#]
public event ResponseReceivedEventHandler ResponseReceived;

FakePre-d08b4bed559147a28b8af484cfb520b1-1a75894f6bca48e28ff53ead0faac2ff

Return Values

Delegate of type ResponseReceivedEventHandler, which receives an argument of type ResponseReceivedEventArgs.

Remarks

Responses to the message sent by a ClientTransaction object are obtained by registering for the ResponseReceived event. Responses can also be obtained through Dispatch from a message filter script.

The response is obtained from the ResponseReceivedEventArgs.Response property defined on the ResponseReceivedEventArgs object returned by the event.

Example Code

The following code example demonstrates how to register for a ResponseReceived event.

myClientTransaction.ResponseReceived += new ResponseReceivedEventHandler(OnResponseReceived);

...

// The method for handling the response???signature must correspond 
// with that of the ResponseReceivedEventHandler delegate.

public void OnResponseReceived(object sender, ResponseReceivedEventArgs responseReceivedArgs) {
   
  // Obtain the Response object.
  Response resp = responseReceivedArgs.Response;
   
  // Put processing for the response here.
  ...
}

Requirements

Redistributable: Requires Microsoft Office Communications Server 2007.
Namespace: Microsoft.Rtc.Sip
Assembly: ServerAgent (in ServerAgent.dll)

See Also

ResponseReceivedEventArgs, ClientTransaction, Dispatch

  
  What did you think of this topic?
  © 2007 Microsoft Corporation. All rights reserved.