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