Пример #1
0
 public void Clean(IList <string> rootDirectories)
 {
     if (this.IsCleaningOverdue())
     {
         lock (CobaltStoreCleaner.syncObject)
         {
             if (this.IsCleaningOverdue())
             {
                 SimulatedWebRequestContext.ExecuteWithoutUserContext("WAC.CleanCobaltStore", delegate(RequestDetailsLogger logger)
                 {
                     WacUtilities.SetEventId(logger, "WAC.CleanCobaltStore");
                     foreach (string text in rootDirectories)
                     {
                         CobaltStoreCleaner.ValidatePath(text);
                         try
                         {
                             this.CleanRootDirectory(text);
                         }
                         catch (DirectoryNotFoundException)
                         {
                         }
                     }
                 });
             }
         }
     }
 }
Пример #2
0
 // Token: 0x0600019F RID: 415 RVA: 0x0000706A File Offset: 0x0000526A
 private void TimerCallback(object unused)
 {
     SimulatedWebRequestContext.ExecuteWithoutUserContext("WAC.AutoSave", delegate(RequestDetailsLogger logger)
     {
         WacUtilities.SetEventId(logger, "WAC.AutoSave");
         logger.ActivityScope.SetProperty(OwaServerLogger.LoggerData.PrimarySmtpAddress, this.smtpAddress);
         logger.ActivityScope.SetProperty(WacRequestHandlerMetadata.ExchangeSessionId, this.exchangeSessionId);
         this.SaveAndLogExceptions(logger);
     });
 }
Пример #3
0
 private void LogExceptionFromO365ShellService(Exception exception, string userPrincipalName, string userPuid, string shellServiceUrl)
 {
     SimulatedWebRequestContext.ExecuteWithoutUserContext("GetShellInfo", delegate(RequestDetailsLogger logger)
     {
         OwsLogRegistry.Register("GetShellInfo", typeof(SuiteServiceProxyHelper.GetShellInfoMetadata), new Type[0]);
         logger.ActivityScope.SetProperty(ExtensibleLoggerMetadata.EventId, "GetShellInfo");
         logger.ActivityScope.SetProperty(OwaServerLogger.LoggerData.PrimarySmtpAddress, userPrincipalName);
         logger.ActivityScope.SetProperty(SuiteServiceProxyHelper.GetShellInfoMetadata.UserPuid, userPuid);
         logger.ActivityScope.SetProperty(SuiteServiceProxyHelper.GetShellInfoMetadata.ShellServiceUrl, shellServiceUrl);
         logger.ActivityScope.SetProperty(ServiceCommonMetadata.GenericErrors, exception.ToString());
     });
 }
Пример #4
0
        // Token: 0x06000205 RID: 517 RVA: 0x00007F14 File Offset: 0x00006114
        private bool TryExecuteWithNewLogger(out Dictionary <Guid, string> result)
        {
            Dictionary <Guid, string> paths = null;

            SimulatedWebRequestContext.ExecuteWithoutUserContext("WAC.MdbCacheUpdate", delegate(RequestDetailsLogger logger)
            {
                WacUtilities.SetEventId(logger, "WAC.MdbCacheUpdate");
                ADNotificationAdapter.RunADOperation(delegate()
                {
                    paths = this.ExecuteQuery(logger);
                });
            });
            result = paths;
            return(result != null);
        }
Пример #5
0
 internal static void OnCacheEntryExpired(CachedAttachmentInfo attachmentInfo)
 {
     SimulatedWebRequestContext.ExecuteWithoutUserContext("WAC.CacheEntryExpired", delegate(RequestDetailsLogger logger)
     {
         WacUtilities.SetEventId(logger, "WAC.CacheEntryExpired");
         logger.ActivityScope.SetProperty(OwaServerLogger.LoggerData.PrimarySmtpAddress, attachmentInfo.MailboxSmtpAddress);
         CobaltStore store = attachmentInfo.CobaltStore;
         ADOperationResult adoperationResult = ADNotificationAdapter.TryRunADOperation(delegate()
         {
             store.Saver.SaveAndLogExceptions(logger);
         });
         store.Dispose();
         Exception exception = adoperationResult.Exception;
         if (exception != null)
         {
             logger.ActivityScope.SetProperty(ServiceCommonMetadata.GenericErrors, exception.ToString());
         }
     });
 }