HangingServiceRequestBase constructor

HangingServiceRequestBase(
  1. ExchangeService service,
  2. HandleResponseObject handler,
  3. int heartbeatFrequency
)
Occurs when the hanging request is disconnected. Initializes a new instance of the The service. Callback delegate to handle response objects Frequency at which we expect heartbeats, in milliseconds.

Implementation

// todo : restore events
//        event HangingRequestDisconnectHandler OnDisconnect;

/// <summary>
/// Initializes a new instance of the <see cref="HangingServiceRequestBase"/> class.
/// </summary>
/// <param name="service">The service.</param>
/// <param name="handler">Callback delegate to handle response objects</param>
/// <param name="heartbeatFrequency">Frequency at which we expect heartbeats, in milliseconds.</param>
HangingServiceRequestBase(ExchangeService service,
    HandleResponseObject handler, int heartbeatFrequency)
    : super(service) {
  this._responseHandler = handler;
  this.heartbeatFrequencyMilliseconds = heartbeatFrequency;
}