示例#1
0
 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));
 }
示例#3
0
 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);
 }
示例#4
0
 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;
 }
示例#5
0
        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)));
        }
示例#6
0
 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));
 }
示例#7
0
 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;
 }