public RemoteForestPhotoHandler(PhotosConfiguration configuration, ITracer upstreamTracer) { ArgumentValidator.ThrowIfNull("configuration", configuration); ArgumentValidator.ThrowIfNull("upstreamTracer", upstreamTracer); this.configuration = configuration; this.tracer = upstreamTracer; }
public RemoteForestPhotoRetrievalPipeline(PhotosConfiguration configuration, IRecipientSession recipientSession, ITracer upstreamTracer) { ArgumentValidator.ThrowIfNull("configuration", configuration); ArgumentValidator.ThrowIfNull("recipientSession", recipientSession); ArgumentValidator.ThrowIfNull("upstreamTracer", upstreamTracer); this.pipeline = new RemoteForestPhotoHandler(configuration, upstreamTracer).Then(new ADPhotoHandler(new ADPhotoReader(upstreamTracer), recipientSession, upstreamTracer)); }
public UserPhotoApplication(PhotoRequest photoRequest, PhotosConfiguration configuration, bool traceRequest, ITracer upstreamTracer) : base(false) { this.photoRequest = photoRequest; this.photosConfiguration = configuration; this.traceRequest = traceRequest; this.upstreamTracer = upstreamTracer; this.tracer = ExTraceGlobals.UserPhotosTracer.Compose(upstreamTracer); }
public RemoteForestPhotoRetrievalPipelineUsingAvailabilityServiceFactory(PhotosConfiguration configuration, IRecipientSession recipientSession, ITracer upstreamTracer) { ArgumentValidator.ThrowIfNull("configuration", configuration); ArgumentValidator.ThrowIfNull("recipientSession", recipientSession); ArgumentValidator.ThrowIfNull("upstreamTracer", upstreamTracer); this.configuration = configuration; this.recipientSession = recipientSession; this.tracer = upstreamTracer; }
public IAsyncResult BeginGetUserPhoto(PhotoRequest request, PhotosConfiguration configuration, AsyncCallback callback, object asyncState) { ArgumentValidator.ThrowIfNull("request", request); ArgumentValidator.ThrowIfNull("configuration", configuration); HttpWebRequest request2 = new HttpPhotoRequestBuilder(configuration, this.tracer).Build(this.targetUri, request, new PhotoRequestOutboundWebProxyProviderUsingLocalServerConfiguration(this.tracer), this.traceRequest); this.httpPhotoRequest = this.ConfigureRequest(request2); return(this.AuthenticateAndBeginInvoke(this.httpPhotoRequest, () => this.httpPhotoRequest.BeginGetResponse(callback, asyncState))); }
public IAsyncResult BeginGetUserPhoto(PhotoRequest request, PhotosConfiguration configuration, AsyncCallback callback, object asyncState) { base.HttpHeaders.Add("If-None-Match", request.ETag); if (this.traceRequest) { PhotosDiagnostics.Instance.StampGetUserPhotoTraceEnabledHeaders(base.HttpHeaders); } return(base.BeginInvoke("GetUserPhoto", new GetUserPhotoRequestType[] { Service.ConvertPhotoRequestToGetUserPhotoRequestType(request) }, callback, asyncState)); }
public GetUserPhotoQuery(ClientContext clientContext, PhotoRequest photoRequest, HttpResponse httpResponse, bool isRequestFromExternalOrganization, PhotosConfiguration configuration, ITracer upstreamTracer) : base(clientContext, httpResponse, CasTraceEventType.Ews, UserPhotoApplication.UserPhotoIOCompletion, UserPhotosPerfCounters.UserPhotosCurrentRequests) { ArgumentValidator.ThrowIfNull("photoRequest", photoRequest); ArgumentValidator.ThrowIfNull("configuration", configuration); this.tracer = ExTraceGlobals.UserPhotosTracer.Compose(upstreamTracer); this.upstreamTracer = upstreamTracer; this.photoRequest = photoRequest; this.isRequestFromExternalOrganization = isRequestFromExternalOrganization; this.photosConfiguration = configuration; }
internal UserPhotoLocalQuery(ClientContext clientContext, DateTime deadline, PhotoRequest photoRequest, PhotosConfiguration configuration, ITracer upstreamTracer) : base(clientContext, deadline) { this.photoRequest = photoRequest; this.tracer = ExTraceGlobals.UserPhotosTracer.Compose(upstreamTracer); this.upstreamTracer = upstreamTracer; this.photosConfiguration = configuration; }