Пример #1
0
        // Token: 0x0600133F RID: 4927 RVA: 0x0004F5E8 File Offset: 0x0004D7E8
        public PhotoUploadPipeline(PhotosConfiguration configuration, IMailboxSession mailboxSession, IRecipientSession recipientSession, ITracer upstreamTracer)
        {
            MailboxPhotoReader reader  = new MailboxPhotoReader(upstreamTracer);
            MailboxPhotoWriter writer  = new MailboxPhotoWriter(mailboxSession, upstreamTracer);
            ADPhotoReader      reader2 = new ADPhotoReader(upstreamTracer);
            ADPhotoWriter      writer2 = new ADPhotoWriter(recipientSession, upstreamTracer);

            this.pipeline = new PreviewPhotoUploadHandler(mailboxSession, reader, writer, PhotoEditor.Default, upstreamTracer).Then(new ADPhotoUploadHandler(recipientSession, configuration, reader2, writer2, upstreamTracer)).Then(new MailboxPhotoUploadHandler(mailboxSession, reader, writer, upstreamTracer)).Then(new FileSystemPhotoUploadHandler(configuration, new FileSystemPhotoWriter(upstreamTracer), upstreamTracer));
        }
        public PhotoManagementRetrievalPipeline(PhotosConfiguration configuration, IMailboxSession mailboxSession, IRecipientSession recipientSession, ITracer upstreamTracer)
        {
            MailboxPhotoReader reader  = new MailboxPhotoReader(upstreamTracer);
            MailboxPhotoWriter writer  = new MailboxPhotoWriter(mailboxSession, upstreamTracer);
            ADPhotoReader      reader2 = new ADPhotoReader(upstreamTracer);
            ADPhotoWriter      writer2 = new ADPhotoWriter(recipientSession, upstreamTracer);

            this.pipeline = new MailboxPhotoUploadHandler(mailboxSession, reader, writer, upstreamTracer).Then(new ADPhotoUploadHandler(recipientSession, configuration, reader2, writer2, upstreamTracer));
        }