// Token: 0x0600166C RID: 5740 RVA: 0x00052830 File Offset: 0x00050A30
 internal OwaServiceMethodMap(Type contractType)
 {
     this.methodMap          = OwaServiceMethodMap.Load(contractType);
     this.supportedMethods   = OwaServiceMethodMap.LoadMethodSetFromWebConfig("OWAHttpHandlerMethods");
     this.unsupportedMethods = OwaServiceMethodMap.LoadMethodSetFromWebConfig("OWAHttpHandlerUnsupportedMethods");
     this.supportAllMethods  = BaseApplication.GetAppSetting <bool>("OWAHttpHandlerSupportAllMethods", false);
 }
Ejemplo n.º 2
0
 protected virtual void Load()
 {
     this.logonTriggeredSyncNowEnabled                   = BaseApplication.GetAppSetting <bool>("UserLogonTriggeredSyncNowEnabled", true);
     this.refreshButtonTriggeredSyncNowEnabled           = BaseApplication.GetAppSetting <bool>("RefreshButtonTriggeredSyncNowEnabled", true);
     this.refreshButtonTriggeredSyncNowSuppressThreshold = BaseApplication.GetTimeSpanAppSetting("RefreshButtonTriggeredSyncNowSuppressThreshold", TimeSpan.FromSeconds(5.0));
     this.periodicSyncNowEnabled  = BaseApplication.GetAppSetting <bool>("PeriodicSyncNowEnabled", true);
     this.periodicSyncNowInterval = BaseApplication.GetTimeSpanAppSetting("PeriodicSyncNowInterval", TimeSpan.FromMinutes(15.0));
     this.notificationsEnabled    = (this.refreshButtonTriggeredSyncNowEnabled || this.logonTriggeredSyncNowEnabled || this.periodicSyncNowEnabled);
     ExTraceGlobals.ConnectedAccountsTracer.TraceDebug((long)this.GetHashCode(), "ConnectedAccountsConfiguration::Configs Loaded - logonTriggeredSyncNowEnabled:{0},periodicSyncNowEnabled:{1},refreshButtonTriggeredSyncNowEnabled:{2},periodicSyncNowInterval:{3},refreshButtonTriggeredSyncNowSuppressThreshold:{4}.", new object[]
     {
         this.logonTriggeredSyncNowEnabled,
         this.periodicSyncNowEnabled,
         this.refreshButtonTriggeredSyncNowEnabled,
         this.periodicSyncNowInterval,
         this.refreshButtonTriggeredSyncNowSuppressThreshold
     });
 }
Ejemplo n.º 3
0
 // Token: 0x06000A06 RID: 2566 RVA: 0x000230F0 File Offset: 0x000212F0
 internal static void Initialize()
 {
     Globals.application                    = BaseApplication.CreateInstance();
     Globals.IsAnonymousCalendarApp         = (Globals.application is OwaAnonymousApplication);
     Globals.IsPreCheckinApp                = Globals.application.IsPreCheckinApp;
     Globals.IsFirstReleaseFlightingEnabled = Globals.application.IsFirstReleaseFlightingEnabled;
     Globals.OwaIsNoRecycleEnabled          = Globals.application.OwaIsNoRecycleEnabled;
     Globals.OwaVersionReadingInterval      = Globals.application.OwaVersionReadingInterval;
     Globals.application.Initialize();
     if (Globals.application.BlockedQueryStringValues != null)
     {
         Globals.blockedQueryStringValues = Globals.application.BlockedQueryStringValues.Split(new string[]
         {
             ";"
         }, StringSplitOptions.RemoveEmptyEntries);
     }
 }
        // Token: 0x06001157 RID: 4439 RVA: 0x00042574 File Offset: 0x00040774
        internal override void UpdateErrorTracingConfiguration()
        {
            bool appSetting = BaseApplication.GetAppSetting <bool>("LogErrorTraces", false);

            if (appSetting == this.logErrorTraces)
            {
                return;
            }
            this.logErrorTraces = new bool?(appSetting);
            Exception ex = null;

            try
            {
                if (File.Exists(ConfigFiles.InMemory.ConfigFilePath))
                {
                    ExTraceGlobals.ConfigurationManagerTracer.TraceDebug(0L, "Globals.UpdateErrorTracingConfiguration: Not changing settings, in-memory tracing configuration file is present.");
                    return;
                }
            }
            catch (IOException ex2)
            {
                ex = ex2;
            }
            catch (UnauthorizedAccessException ex3)
            {
                ex = ex3;
            }
            catch (SecurityException ex4)
            {
                ex = ex4;
            }
            if (ex == null)
            {
                bool enable        = this.logErrorTraces ?? false;
                Guid componentGuid = new Guid("9041df24-db8f-4561-9ce6-75ee8dc21732");
                ExTraceConfiguration.Instance.EnableInMemoryTracing(componentGuid, enable);
                Guid componentGuid2 = new Guid("1758fd24-1153-4624-96f6-742b18fc0372");
                ExTraceConfiguration.Instance.EnableInMemoryTracing(componentGuid2, enable);
                Guid componentGuid3 = new Guid("6d031d1d-5908-457a-a6c4-cdd0f6e74d81");
                ExTraceConfiguration.Instance.EnableInMemoryTracing(componentGuid3, enable);
                return;
            }
            ExTraceGlobals.ConfigurationManagerTracer.TraceDebug <Exception>(0L, "Globals.UpdateErrorTracingConfiguration: Not changing settings, unable to verify presence of in-memory tracing configuration file: {0}", ex);
        }
        // Token: 0x06001670 RID: 5744 RVA: 0x000529B4 File Offset: 0x00050BB4
        private static HashSet <string> LoadMethodSetFromWebConfig(string settingKey)
        {
            string           appSetting = BaseApplication.GetAppSetting <string>(settingKey, string.Empty);
            HashSet <string> hashSet    = new HashSet <string>();

            if (!string.IsNullOrWhiteSpace(appSetting))
            {
                foreach (string text in appSetting.Split(new char[]
                {
                    ','
                }))
                {
                    if (!string.IsNullOrWhiteSpace(text))
                    {
                        hashSet.Add(text.Trim());
                    }
                }
            }
            return(hashSet);
        }
Ejemplo n.º 6
0
        public static InstantMessageOperationError Initialize()
        {
            if (InstantMessageProvider.isInitialized)
            {
                return(InstantMessageOperationError.Success);
            }
            InstantMessageOperationError result;

            try
            {
                if (!Monitor.TryEnter(InstantMessageProvider.initializationLock))
                {
                    result = InstantMessageOperationError.InitializationInProgress;
                }
                else if (InstantMessageProvider.IsInitialized)
                {
                    result = InstantMessageOperationError.Success;
                }
                else
                {
                    Stopwatch stopwatch = Stopwatch.StartNew();
                    InstantMessagingConfiguration instantMessagingConfiguration = null;
                    try
                    {
                        bool appSetting = BaseApplication.GetAppSetting <bool>("EnableIMForOwaPremium", false);
                        if (appSetting)
                        {
                            ExTraceGlobals.InstantMessagingTracer.TraceDebug(0L, "Globals.Initialize: OWA2 Instant Messaging integration is disabled by web.config.");
                            return(InstantMessageOperationError.NotEnabled);
                        }
                        if (!VdirConfiguration.Instance.InstantMessagingEnabled)
                        {
                            return(InstantMessageOperationError.NotEnabled);
                        }
                        instantMessagingConfiguration = InstantMessagingConfiguration.GetInstance(VdirConfiguration.Instance);
                        if (!instantMessagingConfiguration.CheckConfiguration())
                        {
                            return(InstantMessageOperationError.NotConfigured);
                        }
                    }
                    finally
                    {
                        stopwatch.Stop();
                        OwaApplication.GetRequestDetailsLogger.Set(InstantMessageSignIn.LogMetadata.CheckConfiguration, stopwatch.ElapsedMilliseconds);
                    }
                    if (InstantMessageProvider.Initialize(instantMessagingConfiguration.ServerName, instantMessagingConfiguration.PortNumber, () => Globals.ApplicationTime, Globals.ActivityBasedPresenceDuration, Globals.ArePerfCountersEnabled))
                    {
                        ExTraceGlobals.InstantMessagingTracer.TraceDebug(0L, "Globals.Initialize: Success!");
                        result = InstantMessageOperationError.Success;
                    }
                    else
                    {
                        ExTraceGlobals.InstantMessagingTracer.TraceDebug(0L, "Globals.Initialize: Initialization failed.");
                        result = InstantMessageOperationError.NotConfigured;
                    }
                }
            }
            finally
            {
                if (Monitor.IsEntered(InstantMessageProvider.initializationLock))
                {
                    Monitor.Exit(InstantMessageProvider.initializationLock);
                }
            }
            return(result);
        }
Ejemplo n.º 7
0
 public Global()
 {
     this.application = BaseApplication.CreateInstance();
 }