Пример #1
0
        internal LiveAssetReader(HttpContext context)
        {
            DateTime start = DateTime.MinValue;
            DateTime end   = DateTime.MinValue;

            try
            {
                this.Initialize();
                if (LiveAssetReader.isInitialized)
                {
                    start = DateTime.UtcNow;
                    this.aleStringsAgent = new AleStringsAgent(context);
                    end = DateTime.UtcNow;
                    if (BrandingUtilities.IsBranded())
                    {
                        this.brandControl = BrandControl.Create(context);
                    }
                    this.InitializeEnvironmentQualifier();
                    CobrandingAssetReader.initializeErrorLogged = false;
                }
            }
            catch (Exception e)
            {
                base.LogInitializeException(e, ClientsEventLogConstants.Tuple_LiveHeaderConfigurationError);
            }
            finally
            {
                try
                {
                    context.Response.AppendToLog(this.GetDurationLogMessage("Ale", start, end));
                }
                catch
                {
                }
            }
        }
Пример #2
0
 internal static bool IsBranded()
 {
     return(VariantConfiguration.GetSnapshot(MachineSettingsContext.Local, null, null).OwaDeployment.IsBranded.Enabled&& BrandingUtilities.HasMHCookie());
 }