예제 #1
0
 // Token: 0x06001148 RID: 4424 RVA: 0x00047864 File Offset: 0x00045A64
 public ADPhotoHandler(IADPhotoReader reader, IRecipientSession recipientSession, ITracer upstreamTracer)
 {
     ArgumentValidator.ThrowIfNull("reader", reader);
     ArgumentValidator.ThrowIfNull("recipientSession", recipientSession);
     ArgumentValidator.ThrowIfNull("upstreamTracer", upstreamTracer);
     this.tracer           = ExTraceGlobals.UserPhotosTracer.Compose(upstreamTracer);
     this.reader           = reader;
     this.recipientSession = recipientSession;
 }
 public ADPhotoUploadHandler(IRecipientSession session, PhotosConfiguration configuration, IADPhotoReader reader, IADPhotoWriter writer, ITracer upstreamTracer)
 {
     if (session == null)
     {
         throw new ArgumentNullException("session");
     }
     if (configuration == null)
     {
         throw new ArgumentNullException("configuration");
     }
     if (reader == null)
     {
         throw new ArgumentNullException("reader");
     }
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     if (upstreamTracer == null)
     {
         throw new ArgumentNullException("upstreamTracer");
     }
     this.tracer  = ExTraceGlobals.UserPhotosTracer.Compose(upstreamTracer);
     this.session = session;
     this.photoSizeToUploadToAD = configuration.PhotoSizeToUploadToAD;
     this.reader = reader;
     this.writer = writer;
 }