/// <summary> /// Initializes a new instance of the <see cref="GetStreamingEventsRequest"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="serviceObjectHandler">Callback method to handle response objects received.</param> /// <param name="subscriptionIds">List of subscription ids to listen to on this request.</param> /// <param name="connectionTimeout">Connection timeout, in minutes.</param> internal GetStreamingEventsRequest( ExchangeService service, HandleResponseObject serviceObjectHandler, IEnumerable<string> subscriptionIds, int connectionTimeout) : base(service, serviceObjectHandler, GetStreamingEventsRequest.heartbeatFrequency) { this.subscriptionIds = subscriptionIds; this.connectionTimeout = connectionTimeout; }
/// <summary> /// Initializes a new instance of the <see cref="GetStreamingEventsRequest"/> class. /// </summary> /// <param name="service">The service.</param> /// <param name="serviceObjectHandler">Callback method to handle response objects received.</param> /// <param name="subscriptionIds">List of subscription ids to listen to on this request.</param> /// <param name="connectionTimeout">Connection timeout, in minutes.</param> internal GetStreamingEventsRequest( ExchangeService service, HandleResponseObject serviceObjectHandler, IEnumerable <string> subscriptionIds, int connectionTimeout) : base(service, serviceObjectHandler, GetStreamingEventsRequest.heartbeatFrequency) { this.subscriptionIds = subscriptionIds; this.connectionTimeout = connectionTimeout; }
/// <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> internal HangingServiceRequestBase(ExchangeService service, HandleResponseObject handler, int heartbeatFrequency) : base(service) { this.responseHandler = handler; this.heartbeatFrequencyMilliseconds = heartbeatFrequency; }