/// <summary> /// Initializes a new instance of the <see cref="ExchangeServiceBase"/> class. /// </summary> /// <param name="service">The other service.</param> /// <param name="requestedServerVersion">The requested server version.</param> internal ExchangeServiceBase(ExchangeServiceBase service, ExchangeVersion requestedServerVersion) : this(requestedServerVersion) { this.useDefaultCredentials = service.useDefaultCredentials; this.credentials = service.credentials; this.traceEnabled = service.traceEnabled; this.traceListener = service.traceListener; this.traceFlags = service.traceFlags; this.timeout = service.timeout; this.preAuthenticate = service.preAuthenticate; this.userAgent = service.userAgent; this.acceptGzipEncoding = service.acceptGzipEncoding; this.keepAlive = service.keepAlive; this.connectionGroupName = service.connectionGroupName; this.timeZone = service.timeZone; this.httpHeaders = service.httpHeaders; this.ewsHttpWebRequestFactory = service.ewsHttpWebRequestFactory; }
/// <summary> /// Initializes a new instance of the <see cref="ExchangeServiceBase"/> class. /// </summary> /// <param name="service">The other service.</param> /// <param name="requestedServerVersion">The requested server version.</param> internal ExchangeServiceBase(ExchangeServiceBase service, ExchangeVersion requestedServerVersion) : this(requestedServerVersion) { this.useDefaultCredentials = service.useDefaultCredentials; this.credentials = service.credentials; this.traceEnabled = service.traceEnabled; this.traceListener = service.traceListener; this.traceFlags = service.traceFlags; this.timeout = service.timeout; this.preAuthenticate = service.preAuthenticate; this.userAgent = service.userAgent; this.acceptGzipEncoding = service.acceptGzipEncoding; this.keepAlive = service.keepAlive; this.connectionGroupName = service.connectionGroupName; this.timeZone = service.timeZone; this.httpHeaders = service.httpHeaders; this.ewsHttpWebRequestFactory = service.ewsHttpWebRequestFactory; }