// Token: 0x06000F62 RID: 3938 RVA: 0x0005B979 File Offset: 0x00059B79
 public SplitOperationFactory(IPublicFolderSession publicFolderSession, IPublicFolderMailboxLoggerBase logger, IAssistantRunspaceFactory powershellFactory, IXSOFactory xsoFactory)
 {
     this.publicFolderSession = publicFolderSession;
     this.logger            = logger;
     this.powershellFactory = powershellFactory;
     this.xsoFactory        = xsoFactory;
 }
 // Token: 0x06000F2A RID: 3882 RVA: 0x0005A822 File Offset: 0x00058A22
 private PublicFolderSplitProcessor(IPublicFolderSession publicFolderSession, ITracer tracer, IXSOFactory xsoFactory, IPublicFolderMailboxLoggerBase logger, IPublicFolderMailboxLoggerBase completionLogger, IAssistantRunspaceFactory powershellFactory) : base(publicFolderSession, tracer)
 {
     this.disposeTracker    = this.GetDisposeTracker();
     this.logger            = logger;
     this.completionLogger  = completionLogger;
     this.xsoFactory        = xsoFactory;
     this.powershellFactory = powershellFactory;
 }
 public PublicFolderMailboxLoggerBase(IPublicFolderSession publicFolderSession, Guid?correlationId = null)
 {
     ArgumentValidator.ThrowIfNull("publicFolderSession", publicFolderSession);
     this.TransactionId  = (correlationId ?? Guid.NewGuid());
     this.pfSession      = publicFolderSession;
     this.organizationId = this.pfSession.OrganizationId;
     this.MailboxGuid    = publicFolderSession.MailboxGuid;
 }
Exemple #4
0
 // Token: 0x06000EDA RID: 3802 RVA: 0x000586E0 File Offset: 0x000568E0
 public PublicFolderAssistantLogger(IPublicFolderSession publicFolderSession) : base(publicFolderSession, "PublicFolderAssistantInfo", "PublicFolderLastAssistantCycleLog", null)
 {
     this.logComponent  = "PublicFolderAssistantLog";
     this.logSuffixName = "PublicFolderAssistantLog";
     using (DisposeGuard disposeGuard = this.Guard())
     {
         base.LogEvent(LogEventType.Entry, "Start");
         disposeGuard.Success();
     }
 }
Exemple #5
0
 // Token: 0x06000E8B RID: 3723 RVA: 0x00057438 File Offset: 0x00055638
 internal SplitOperationBase(string name, IPublicFolderSession publicFolderSession, IPublicFolderSplitState splitState, IPublicFolderMailboxLoggerBase logger, IAssistantRunspaceFactory powershellFactory, ISplitOperationState splitOperationState, SplitProgressState startState, SplitProgressState completionState)
 {
     this.name = name;
     this.publicFolderSession = publicFolderSession;
     this.splitState          = splitState;
     this.logger              = logger;
     this.powershellFactory   = powershellFactory;
     this.startState          = startState;
     this.completionState     = completionState;
     this.splitOperationState = splitOperationState;
 }
Exemple #6
0
 // Token: 0x06000EEB RID: 3819 RVA: 0x0005885C File Offset: 0x00056A5C
 public PublicFolderProcessor(IPublicFolderSession publicFolderSession, ITracer tracer)
 {
     if (publicFolderSession == null)
     {
         throw new ArgumentNullException("publicFolderSession");
     }
     if (tracer == null)
     {
         throw new ArgumentNullException("tracer");
     }
     this.publicFolderSession = publicFolderSession;
     this.now    = ExDateTime.UtcNow;
     this.tracer = tracer;
 }
 public PublicFolderMailboxLogger(IPublicFolderSession publicFolderSession, string configurationName, string lastCycleLogConfigurationName, Guid?correlationId = null) : base(publicFolderSession, correlationId)
 {
     using (DisposeGuard disposeGuard = this.Guard())
     {
         IXSOFactory ixsofactory = new XSOFactory();
         using (Folder folder = ixsofactory.BindToFolder(publicFolderSession, publicFolderSession.GetTombstonesRootFolderId()) as Folder)
         {
             this.diagnosticsMetadata  = UserConfiguration.GetConfiguration(folder, new UserConfigurationName(lastCycleLogConfigurationName, ConfigurationNameKind.Name), UserConfigurationTypes.Stream);
             this.lastCycleLogMetadata = UserConfiguration.GetConfiguration(folder, new UserConfigurationName(configurationName, ConfigurationNameKind.Name), UserConfigurationTypes.Dictionary);
             this.loggingStream        = this.diagnosticsMetadata.GetStream();
             disposeGuard.Add <Stream>(this.loggingStream);
             this.loggingStream.SetLength(0L);
             this.loggingStream.Flush();
             this.gZipLoggingStream = new GZipStream(this.loggingStream, CompressionMode.Compress, true);
         }
         this.SetSyncMetadataValue("LastAttemptedSyncTime", ExDateTime.UtcNow);
         disposeGuard.Success();
     }
 }
 // Token: 0x06000F82 RID: 3970 RVA: 0x0005BF4D File Offset: 0x0005A14D
 internal SplitStateAdapter(IPublicFolderSession publicFolderSession, IXSOFactory xsoFactory, IPublicFolderMailboxLoggerBase logger)
 {
     this.publicFolderSession = publicFolderSession;
     this.xsoFactory          = xsoFactory;
     this.logger = logger;
 }
Exemple #9
0
 // Token: 0x06000E94 RID: 3732 RVA: 0x00057748 File Offset: 0x00055948
 internal IdentifyTargetMailboxOperation(IPublicFolderSplitState splitState, IPublicFolderSession publicFolderSession, IPublicFolderMailboxLoggerBase logger, IAssistantRunspaceFactory powershellFactory) : base(IdentifyTargetMailboxOperation.OperationName, publicFolderSession, splitState, logger, powershellFactory, splitState.IdentifyTargetMailboxState, SplitProgressState.IdentifyTargetMailboxStarted, SplitProgressState.IdentifyTargetMailboxCompleted)
 {
 }
            // Token: 0x06000EF7 RID: 3831 RVA: 0x00059600 File Offset: 0x00057800
            public FolderRec(IPublicFolderSession publicFolderSession, object[] properties)
            {
                for (int i = 0; i < PublicFolderItemProcessor.FolderRec.PropertiesToLoad.Length; i++)
                {
                    if (!(properties[i] is PropertyError))
                    {
                        switch (i)
                        {
                        case 0:
                        {
                            VersionedId versionedId = properties[i] as VersionedId;
                            if (versionedId != null)
                            {
                                this.FolderId = versionedId.ObjectId;
                            }
                            break;
                        }

                        case 1:
                        {
                            string[] array = properties[i] as string[];
                            if (array != null && array.Length > 0)
                            {
                                GuidHelper.TryParseGuid(array[0], out this.ContentMailboxGuid);
                            }
                            break;
                        }

                        case 3:
                            this.OverallAgeLimit = (properties[i] as int?);
                            break;

                        case 4:
                            this.RetentionAgeLimit = (properties[i] as int?);
                            break;

                        case 5:
                        {
                            byte[] array2 = properties[i] as byte[];
                            if (array2 != null)
                            {
                                if (array2.Length == 22)
                                {
                                    this.DumpsterId = publicFolderSession.IdConverter.CreateFolderId(publicFolderSession.IdConverter.GetIdFromLongTermId(array2));
                                }
                                if (array2.Length == 46)
                                {
                                    this.DumpsterId = StoreObjectId.FromProviderSpecificId(array2, StoreObjectType.Folder);
                                }
                            }
                            break;
                        }

                        case 6:
                            this.ItemCount = (properties[i] as int?);
                            break;

                        case 7:
                            this.AssociatedItemCount = (properties[i] as int?);
                            break;

                        case 8:
                            this.SubfolderCount = (properties[i] as int?);
                            break;

                        case 9:
                        {
                            byte[] array3 = properties[i] as byte[];
                            if (array3 != null && array3.Length > 0)
                            {
                                this.ParentId = StoreObjectId.FromProviderSpecificId(array3, StoreObjectType.Folder);
                            }
                            break;
                        }

                        case 10:
                            this.LastModifiedTime = (properties[i] as ExDateTime?);
                            break;

                        case 11:
                        {
                            ELCFolderFlags elcfolderFlags = (ELCFolderFlags)properties[i];
                            this.IsDumpsterFolder = ((elcfolderFlags & ELCFolderFlags.DumpsterFolder) != ELCFolderFlags.None);
                            break;
                        }

                        case 12:
                            this.LastMovedTimeStamp = (properties[i] as ExDateTime?);
                            break;
                        }
                    }
                }
            }
 // Token: 0x06000F29 RID: 3881 RVA: 0x0005A7F9 File Offset: 0x000589F9
 internal PublicFolderSplitProcessor(IPublicFolderSession publicFolderSession, ITracer tracer, IXSOFactory xsoFactory, ISplitQuotaVerifier quotaVerifier, IPublicFolderMailboxLoggerBase logger, IPublicFolderMailboxLoggerBase completionLogger, ISplitStateAdapter adapter, ISplitOperationFactory operationFactory, IAssistantRunspaceFactory powershellFactory) : this(publicFolderSession, tracer, xsoFactory, logger, completionLogger, powershellFactory)
 {
     this.splitStateAdapter = adapter;
     this.quotaVerifier     = quotaVerifier;
     this.operationFactory  = operationFactory;
 }
 // Token: 0x06000F28 RID: 3880 RVA: 0x0005A78C File Offset: 0x0005898C
 internal PublicFolderSplitProcessor(IPublicFolderSession publicFolderSession, ITracer tracer, IPublicFolderMailboxLoggerBase logger, IPublicFolderMailboxLoggerBase completionLogger, IAssistantRunspaceFactory powershellFactory) : this(publicFolderSession, tracer, new XSOFactory(), logger, completionLogger, powershellFactory)
 {
     this.quotaVerifier     = new SplitQuotaVerifier(publicFolderSession, this.logger, this.powershellFactory);
     this.operationFactory  = new SplitOperationFactory(publicFolderSession, this.logger, this.powershellFactory, this.xsoFactory);
     this.splitStateAdapter = new SplitStateAdapter(publicFolderSession, this.xsoFactory, this.logger);
 }
 // Token: 0x06000F26 RID: 3878 RVA: 0x0005A698 File Offset: 0x00058898
 public PublicFolderSplitProcessor(IPublicFolderSession publicFolderSession, ITracer tracer) : this(publicFolderSession, tracer, new XSOFactory(), new PublicFolderSplitLogger(publicFolderSession, "PublicFolderSplitLog"), new PublicFolderSplitLogger(publicFolderSession, "PublicFolderSplitHealth"), new AssistantRunspaceFactory())
 {
     this.quotaVerifier     = new SplitQuotaVerifier(publicFolderSession, this.logger, this.powershellFactory);
     this.operationFactory  = new SplitOperationFactory(publicFolderSession, this.logger, this.powershellFactory, this.xsoFactory);
     this.splitStateAdapter = new SplitStateAdapter(publicFolderSession, this.xsoFactory, this.logger);
 }
Exemple #14
0
 // Token: 0x06000F22 RID: 3874 RVA: 0x0005A650 File Offset: 0x00058850
 public PublicFolderSplitLogger(IPublicFolderSession publicFolderSession, string logComponent) : base(publicFolderSession, null)
 {
     this.logComponent  = logComponent;
     this.logSuffixName = logComponent;
 }
 // Token: 0x06000F5C RID: 3932 RVA: 0x0005B6FC File Offset: 0x000598FC
 internal PrepareTargetMailboxOperation(IPublicFolderSplitState splitState, IPublicFolderSession publicFolderSession, IPublicFolderMailboxLoggerBase logger, IAssistantRunspaceFactory powershellFactory, IXSOFactory xsoFactory) : base(PrepareTargetMailboxOperation.OperationName, publicFolderSession, splitState, logger, powershellFactory, splitState.PrepareTargetMailboxState, SplitProgressState.PrepareTargetMailboxStarted, SplitProgressState.PrepareTargetMailboxCompleted)
 {
     this.xsoFactory = xsoFactory;
 }
 // Token: 0x06000F80 RID: 3968 RVA: 0x0005BDBA File Offset: 0x00059FBA
 public SplitQuotaVerifier(IPublicFolderSession publicFolderSession, IPublicFolderMailboxLoggerBase logger, IAssistantRunspaceFactory powershellFactory)
 {
     this.publicFolderSession = publicFolderSession;
     this.logger            = logger;
     this.powershellFactory = powershellFactory;
 }
Exemple #17
0
 // Token: 0x06000F79 RID: 3961 RVA: 0x0005BAC0 File Offset: 0x00059CC0
 internal PrepareSplitPlanOperation(IPublicFolderSplitState splitState, IPublicFolderSession session, IPublicFolderMailboxLoggerBase logger, IAssistantRunspaceFactory powershellFactory, string splitScriptPath) : base(PrepareSplitPlanOperation.OperationName, session, splitState, logger, powershellFactory, splitState.PrepareSplitPlanState, SplitProgressState.PrepareSplitPlanStarted, SplitProgressState.PrepareSplitPlanCompleted)
 {
     this.splitPlanScriptPath = splitScriptPath;
 }