// Token: 0x060011C2 RID: 4546 RVA: 0x0004A918 File Offset: 0x00048B18 public HttpWebRequest Build(Uri ewsUri, PhotoRequest request, IPhotoRequestOutboundWebProxyProvider proxyProvider, bool traceRequest) { ArgumentValidator.ThrowIfNull("ewsUri", ewsUri); ArgumentValidator.ThrowIfInvalidValue <Uri>("ewsUri", ewsUri, (Uri x) => !string.IsNullOrEmpty(x.AbsolutePath)); ArgumentValidator.ThrowIfNull("request", request); ArgumentValidator.ThrowIfNull("proxyProvider", proxyProvider); Uri uri = this.CreateUri(ewsUri, request); this.tracer.TraceDebug <Uri>((long)this.GetHashCode(), "REQUEST BUILDER: request URI: {0}", uri); HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(uri); httpWebRequest.Headers.Set(HttpRequestHeader.IfNoneMatch, request.ETag); PhotoRequestorHeader.Default.Serialize(request.Requestor, httpWebRequest); httpWebRequest.Proxy = proxyProvider.Create(); if (request.Trace || traceRequest) { PhotosDiagnostics.Instance.StampGetUserPhotoTraceEnabledHeaders(httpWebRequest); } return(httpWebRequest); }
public LocalForestOtherServerPhotoRetrievalPipeline(PhotosConfiguration configuration, string certificateValidationComponentId, IPhotoServiceLocator serviceLocator, IRecipientSession recipientSession, IPhotoRequestOutboundWebProxyProvider outgoingRequestProxyProvider, ITracer upstreamTracer) { this.pipeline = new HttpPhotoHandler(configuration, this.CreateOutboundSender(certificateValidationComponentId, upstreamTracer), serviceLocator, outgoingRequestProxyProvider, upstreamTracer).Then(new ADPhotoHandler(new ADPhotoReader(upstreamTracer), recipientSession, upstreamTracer)); }
// Token: 0x060011A5 RID: 4517 RVA: 0x00049FA0 File Offset: 0x000481A0 public HttpPhotoHandler(PhotosConfiguration configuration, IPhotoRequestOutboundSender outboundRequestSender, IPhotoServiceLocator serviceLocator, IPhotoRequestOutboundWebProxyProvider outgoingRequestProxyProvider, ITracer upstreamTracer) { ArgumentValidator.ThrowIfNull("configuration", configuration); ArgumentValidator.ThrowIfNull("outboundRequestSender", outboundRequestSender); ArgumentValidator.ThrowIfNull("serviceLocator", serviceLocator); ArgumentValidator.ThrowIfNull("outgoingRequestProxyProvider", outgoingRequestProxyProvider); ArgumentValidator.ThrowIfNull("upstreamTracer", upstreamTracer); this.configuration = configuration; this.outboundRequestSender = outboundRequestSender; this.serviceLocator = serviceLocator; this.outgoingRequestProxyProvider = outgoingRequestProxyProvider; this.tracer = ExTraceGlobals.UserPhotosTracer.Compose(upstreamTracer); }
// Token: 0x060011DC RID: 4572 RVA: 0x0004B0D8 File Offset: 0x000492D8 public LocalServerFallbackToOtherServerPhotoRetrievalPipeline(PhotosConfiguration configuration, string clientInfo, IRecipientSession recipientSession, IXSOFactory xsoFactory, string certificateValidationComponentId, IPhotoServiceLocatorFactory serviceLocatorFactory, IPhotoRequestOutboundWebProxyProvider outgoingRequestProxyProvider, ITracer upstreamTracer) { this.configuration = configuration; this.certificateValidationComponentId = certificateValidationComponentId; this.recipientSession = recipientSession; this.serviceLocatorFactory = serviceLocatorFactory; this.outgoingRequestProxyProvider = outgoingRequestProxyProvider; this.tracer = upstreamTracer; this.localServerPipeline = new LocalServerPhotoRetrievalPipeline(configuration, clientInfo, recipientSession, xsoFactory, upstreamTracer); }
// Token: 0x06001227 RID: 4647 RVA: 0x0004CD3C File Offset: 0x0004AF3C public OrganizationalPhotoRetrievalPipeline(PhotosConfiguration configuration, string certificateValidationComponentId, string clientInfo, IRecipientSession recipientSession, IPhotoRequestOutboundWebProxyProvider outgoingRequestProxyProvider, IRemoteForestPhotoRetrievalPipelineFactory remoteForestPipelineFactory, IXSOFactory xsoFactory, ITracer tracer) { ArgumentValidator.ThrowIfNull("configuration", configuration); ArgumentValidator.ThrowIfNullOrEmpty("certificateValidationComponentId", certificateValidationComponentId); ArgumentValidator.ThrowIfNullOrEmpty("clientInfo", clientInfo); ArgumentValidator.ThrowIfNull("recipientSession", recipientSession); ArgumentValidator.ThrowIfNull("outgoingRequestProxyProvider", outgoingRequestProxyProvider); ArgumentValidator.ThrowIfNull("remoteForestPipelineFactory", remoteForestPipelineFactory); ArgumentValidator.ThrowIfNull("tracer", tracer); this.router = new PhotoRequestRouter(configuration, certificateValidationComponentId, clientInfo, recipientSession, new PhotoServiceLocatorFactory(tracer), outgoingRequestProxyProvider, remoteForestPipelineFactory, xsoFactory, tracer); }
public OwaPhotoRetrievalPipeline(PhotosConfiguration configuration, string certificateValidationComponentId, string clientInfo, IRecipientSession recipientSession, IPhotoRequestOutboundWebProxyProvider outgoingRequestProxyProvider, IRemoteForestPhotoRetrievalPipelineFactory remoteForestPipelineFactory, IXSOFactory xsoFactory, ITracer upstreamTracer) { ArgumentValidator.ThrowIfNull("configuration", configuration); ArgumentValidator.ThrowIfNullOrEmpty("certificateValidationComponentId", certificateValidationComponentId); ArgumentValidator.ThrowIfNullOrEmpty("clientInfo", clientInfo); ArgumentValidator.ThrowIfNull("recipientSession", recipientSession); ArgumentValidator.ThrowIfNull("outgoingRequestProxyProvider", outgoingRequestProxyProvider); ArgumentValidator.ThrowIfNull("remoteForestPipelineFactory", remoteForestPipelineFactory); ArgumentValidator.ThrowIfNull("xsoFactory", xsoFactory); ArgumentValidator.ThrowIfNull("upstreamTracer", upstreamTracer); this.pipeline = new OrganizationalPhotoRetrievalPipeline(configuration, certificateValidationComponentId, clientInfo, recipientSession, outgoingRequestProxyProvider, remoteForestPipelineFactory, xsoFactory, upstreamTracer).Then(new OrganizationalToPrivatePhotoHandlerTransition(upstreamTracer)).Then(new PrivatePhotoHandler(configuration, xsoFactory, upstreamTracer)).Then(new TransparentImagePhotoHandler(configuration, upstreamTracer)); }
public PhotoRequestRouter(PhotosConfiguration configuration, string certificateValidationComponentId, string clientInfo, IRecipientSession recipientSession, IPhotoServiceLocatorFactory serviceLocatorFactory, IPhotoRequestOutboundWebProxyProvider outgoingRequestProxyProvider, IRemoteForestPhotoRetrievalPipelineFactory remoteForestPipelineFactory, IXSOFactory xsoFactory, ITracer upstreamTracer) { ArgumentValidator.ThrowIfNull("configuration", configuration); ArgumentValidator.ThrowIfNullOrEmpty("certificateValidationComponentId", certificateValidationComponentId); ArgumentValidator.ThrowIfNullOrEmpty("clientInfo", clientInfo); ArgumentValidator.ThrowIfNull("recipientSession", recipientSession); ArgumentValidator.ThrowIfNull("serviceLocatorFactory", serviceLocatorFactory); ArgumentValidator.ThrowIfNull("outgoingRequestProxyProvider", outgoingRequestProxyProvider); ArgumentValidator.ThrowIfNull("remoteForestPipelineFactory", remoteForestPipelineFactory); ArgumentValidator.ThrowIfNull("xsoFactory", xsoFactory); ArgumentValidator.ThrowIfNull("upstreamTracer", upstreamTracer); this.configuration = configuration; this.certificateValidationComponentId = certificateValidationComponentId; this.clientInfo = clientInfo; this.recipientSession = recipientSession; this.serviceLocatorFactory = serviceLocatorFactory; this.outgoingRequestProxyProvider = outgoingRequestProxyProvider; this.remoteForestPipelineFactory = remoteForestPipelineFactory; this.xsoFactory = xsoFactory; this.tracer = upstreamTracer; }