StreamingSubscriptionConnection constructor
StreamingSubscriptionConnection(
- ExchangeService service,
- int lifetime
Implementation
StreamingSubscriptionConnection(ExchangeService service, int lifetime) {
EwsUtilities.ValidateParam(service, "service");
EwsUtilities.ValidateClassVersion(
service, ExchangeVersion.Exchange2010_SP1, this.runtimeType.toString());
if (lifetime < 1 || lifetime > 30) {
throw new RangeError.range(lifetime, 1, 30, "lifetime");
}
this._session = service;
this._connectionTimeout = lifetime;
}