コード例 #1
0
        ///// <summary>
        ///// Gets the customer registration repository.
        ///// </summary>
        //public CustomerRegistrationRepository CustomerRegistrationRepository { get; private set; }

        /// <summary>
        /// Initializes the core application domain objects.
        /// </summary>
        /// <returns>A task.</returns>
        public static async Task BootstrapAsync()
        {
            if (Instance == null)
            {
                Instance = new ApplicationDomain
                {
                    PartnerCenterClient = await AcquirePartnerCenterAccessAsync().ConfigureAwait(false),
                };

                Instance.PortalLocalization = new PortalLocalization(Instance);

                await Instance.PortalLocalization.InitializeAsync().ConfigureAwait(false);
            }
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MicrosoftOfferLogoIndexer"/> class.
        /// </summary>
        /// <param name="applicationDomain">An application domain instance.</param>
        public MicrosoftOfferLogoIndexer(ApplicationDomain applicationDomain) : base(applicationDomain)
        {
            // register offer logo matchers
            offerLogoMatchers.Add(new OfferLogoMatcher(new string[] { "azure", "active directory" }, "/Content/Images/Plugins/ProductLogos/azure-logo.png"));
            offerLogoMatchers.Add(new OfferLogoMatcher(new string[] { "dynamics", "crm" }, "/Content/Images/Plugins/ProductLogos/dynamics-logo.png"));
            offerLogoMatchers.Add(new OfferLogoMatcher(new string[] { "exchange" }, "/Content/Images/Plugins/ProductLogos/exchange-logo.png"));
            offerLogoMatchers.Add(new OfferLogoMatcher(new string[] { "intune" }, "/Content/Images/Plugins/ProductLogos/intune-logo.png"));
            offerLogoMatchers.Add(new OfferLogoMatcher(new string[] { "onedrive" }, "/Content/Images/Plugins/ProductLogos/onedrive-logo.png"));
            offerLogoMatchers.Add(new OfferLogoMatcher(new string[] { "project" }, "/Content/Images/Plugins/ProductLogos/project-logo.png"));
            offerLogoMatchers.Add(new OfferLogoMatcher(new string[] { "sharepoint" }, "/Content/Images/Plugins/ProductLogos/sharepoint-logo.png"));
            offerLogoMatchers.Add(new OfferLogoMatcher(new string[] { "skype" }, "/Content/Images/Plugins/ProductLogos/skype-logo.png"));
            offerLogoMatchers.Add(new OfferLogoMatcher(new string[] { "visio" }, "/Content/Images/Plugins/ProductLogos/visio-logo.png"));
            offerLogoMatchers.Add(new OfferLogoMatcher(new string[] { "office", "365" }, "/Content/Images/Plugins/ProductLogos/office-logo.png"));
            offerLogoMatchers.Add(new OfferLogoMatcher(new string[] { "yammer" }, "/Content/Images/Plugins/ProductLogos/yammer-logo.png"));

            // we will default the logo if all the above matchers fail to match the given offer
            offerLogoMatchers.Add(new DefaultLogoMatcher());
        }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PartnerOffersRepository"/> class.
 /// </summary>
 /// <param name="applicationDomain">An application domain instance.</param>
 public PartnerOffersRepository(ApplicationDomain applicationDomain) : base(applicationDomain)
 {
 }
コード例 #4
0
 /// <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)
 {
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DomainObject"/> class.
 /// </summary>
 /// <param name="applicationDomain">An application domain instance.</param>
 protected DomainObject(ApplicationDomain applicationDomain)
 {
     //applicationDomain.AssertNotNull(nameof(applicationDomain));
     this.ApplicationDomain = applicationDomain;
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PartnerOffersRepository"/> class.
 /// </summary>
 /// <param name="applicationDomain">An application domain instance.</param>
 public Offers(ApplicationDomain applicationDomain) : base(applicationDomain)
 {
 }
コード例 #7
0
 public Customers(ApplicationDomain applicationDomain) : base(applicationDomain)
 {
 }
コード例 #8
0
 /// <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)
 {
 }
コード例 #9
0
 /// <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)
 {
 }