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 { } } }
internal static bool IsBranded() { return(VariantConfiguration.GetSnapshot(MachineSettingsContext.Local, null, null).OwaDeployment.IsBranded.Enabled&& BrandingUtilities.HasMHCookie()); }