/// <summary> /// Initializes the core application domain objects. /// </summary> /// <returns>A task.</returns> public static async Task BootstrapAsync() { if (Instance == null) { Instance = new ApplicationDomain(); Instance.PartnerCenterClient = await AcquirePartnerCenterAccessAsync().ConfigureAwait(false); Instance.PortalLocalization = new PortalLocalization(Instance); await Instance.PortalLocalization.InitializeAsync().ConfigureAwait(false); } }
/// <summary> /// Initializes a new instance of the <see cref="CachingService"/> class. /// </summary> /// <param name="applicationDomain">An application domain instance.</param> /// <param name="cacheConnectionString">The cache connection string.</param> public CachingService(ApplicationDomain applicationDomain, string cacheConnectionString) : base(applicationDomain) { this.cacheConnectionString = cacheConnectionString; this.isCashingEnabled = !string.IsNullOrWhiteSpace(this.cacheConnectionString); }
/// <summary> /// Initializes a new instance of the <see cref="PaymentConfigurationRepository"/> class. /// </summary> /// <param name="applicationDomain">An application domain instance.</param> public PaymentConfigurationRepository(ApplicationDomain applicationDomain) : base(applicationDomain) { }
/// <summary> /// Initializes a new instance of the <see cref="PreApprovedCustomersRepository"/> class. /// </summary> /// <param name="applicationDomain">An application domain instance.</param> public PreApprovedCustomersRepository(ApplicationDomain applicationDomain) : base(applicationDomain) { }
/// <summary> /// Initializes a new instance of the <see cref="TelemetryService"/> class. /// </summary> /// <param name="applicationDomain">An application domain instance.</param> public TelemetryService(ApplicationDomain applicationDomain) : base(applicationDomain) { }
/// <summary> /// Initializes a new instance of the <see cref="PortalBranding"/> class. /// </summary> /// <param name="applicationDomain">An application domain instance.</param> public PortalBranding(ApplicationDomain applicationDomain) : base(applicationDomain) { }
/// <summary> /// Initializes a new instance of the <see cref="PortalLocalization"/> class. /// </summary> /// <param name="applicationDomain">An application domain instance.</param> public PortalLocalization(ApplicationDomain applicationDomain) : base(applicationDomain) { }