public override void DependencyRegistration(IRegistrationControl control) { control.RegisterType<IUmbracoVersion, UmbracoVersion>(); if (ApplicationContext.Current == null || ApplicationContext.Current.Services == null) { control.NotNow(); return; } control.RegisterInstance<IContentService, IContentService>(ApplicationContext.Current.Services.ContentService); control.RegisterInstance<IContentTypeService, IContentTypeService>(ApplicationContext.Current.Services.ContentTypeService); UmbracoAddon.VersionSpecificTypesConfiguredInIOCContainer = true; }
public override void DependencyRegistration(IRegistrationControl control) { control.RegisterType <IUmbracoVersion, UmbracoVersion>(); if (ApplicationContext.Current == null || ApplicationContext.Current.Services == null) { control.NotNow(); return; } control.RegisterInstance <IContentService, IContentService>(ApplicationContext.Current.Services.ContentService); control.RegisterInstance <IContentTypeService, IContentTypeService>(ApplicationContext.Current.Services.ContentTypeService); UmbracoAddon.VersionSpecificTypesConfiguredInIOCContainer = true; }
public override void DependencyRegistration(IRegistrationControl control) { control.RegisterType <ICouponCodeService, CouponCodeService>(); }
public override void DependencyRegistration(IRegistrationControl control) { control.RegisterType<IProductUrlService, CatalogCategoryPlusProductUrlService>(); }
public void Register(IRegistrationControl control) { control.RegisterType <IContentTypeAliassesXmlService, ContentTypeAliassesXmlService>(); ModuleFunctionality.Register(control); }
public override void DependencyRegistration(IRegistrationControl control) { control.RegisterType<ICouponCodeService, CouponCodeService>(); }
public override void DependencyRegistration(IRegistrationControl container) { // entity services (will need to move to Domain) container.RegisterType <IStoreService, UmbracoStoreService>(); // todo: move to Domain container.RegisterType <IZoneService, UmbracoZoneService>(); container.RegisterType <IRebuildIndicesService, ExamineRebuildIndicesService>(); container.RegisterType <ICMSApplication, UmbracoApplication>(); container.RegisterType <IApplicationCacheManagingService, UmbracoApplicationCacheManagingService>(); container.RegisterType <ICMSDocumentTypeService, UmbracoDocumentTypeService>(); container.RegisterType <IAuthenticationProvider, UmbracoDotnetMembershipAuthenticationProvider>(); container.RegisterType <IStoreUrlService, UmbracoStorePickerStoreUrlService>(); container.RegisterType <IStoreRepository, UmbracoStoreRepository>(); container.RegisterType <IPaymentProviderRepository, UmbracoPaymentProviderRepository>(); container.RegisterType <IPaymentProviderMethodRepository, UmbracoPaymentProviderMethodRepository>(); container.RegisterType <IShippingProviderRepository, UmbracoShippingProviderRepository>(); container.RegisterType <IShippingProviderMethodRepository, UmbracoShippingProviderMethodRepository>(); container.RegisterType <ICMSEntityRepository, UmbracoStaticCachedEntityRepository>(); container.RegisterType <IOrderDiscountRepository, UmbracoOrderDiscountRepository>(); container.RegisterType <IProductDiscountRepository, UmbracoProductDiscountRepository>(); container.RegisterType <IProductRepository, PlainProductRepository>(); container.RegisterType <IProductVariantGroupRepository, PlainVariantGroupRepository>(); container.RegisterType <IProductVariantRepository, PlainVariantRepository>(); container.RegisterType <ICategoryRepository, PlainCategoryRepository>(); container.RegisterType <ICMSContentService, CMSContentService>(); container.RegisterType <ISettingsService, SettingsService>(); container.RegisterType <IHttpContextWrapper, HttpContextWrapper>(); container.RegisterType <IDataTypeDefinitions, uWebshop.DataTypes.DataTypes>(); container.RegisterType <ILoggingService, UmbracoLoggingService>(); container.RegisterType <ICMSInstaller, CMSInstaller>(); container.RegisterType <IUmbracoDocumentTypeInstaller, UmbracoDocumentTypeInstaller>(); container.RegisterType <ICMSChangeContentService, CMSChangeContentService>(); }
public override void DependencyRegistration(IRegistrationControl container) { // CMS unaware services (uwebshop default) container.RegisterType <IDiscountCalculationService, DiscountCalculationService>(); container.RegisterType <IUrlRewritingService, UrlRewritingService>(); container.RegisterType <ICatalogUrlResolvingService, CatalogUrlResolvingService>(); container.RegisterType <IVATCheckService, ViesVatCheckService>(); container.RegisterType <IOrderUpdatingService, OrderUpdatingService>(); container.RegisterType <IOrderNumberService, OrderNumberService>(); container.RegisterType <IStockService, StockService>(); container.RegisterType <IUwebshopRequestService, UwebshopHttpContextRequestService>(); container.RegisterType <IInstaller, UwebshopDefaultInstaller>(); container.RegisterType <ICurrencyCultureInfoForLocalizationService, CurrencyCultureInfoForLocalizationService>(); container.RegisterType <IStoreFromUrlDeterminationService, StoreFromUrlDeterminationService>(); container.RegisterType <IDefaultCurrencyCultureService, ConfigFileDefaultCurrencyCultureService>(); if (System.Web.Configuration.WebConfigurationManager.AppSettings["uWebshopLoadBalanced"] == "true") { container.RegisterType <IApplicationCacheService, LoadBalancedApplicationCacheService>(); } else { container.RegisterType <IApplicationCacheService, LocalApplicationCacheService>(); } container.RegisterType <ICategoryCatalogUrlService, CategoryCatalogUrlService>(); container.RegisterType <IUrlFormatService, UrlFormatService>(); container.RegisterType <IUrlLocalizationService, StoreUrlInFrontBasedOnCurrentNodeUrlLocalizationService>(); container.RegisterType <IUrlService, UrlService>(); if (System.Web.Configuration.WebConfigurationManager.AppSettings["uWebshopCalculateVatOverTotal"] == "true") { container.RegisterType <IVatCalculationStrategy, OverTotalVatCalculationStrategy>(); } else { container.RegisterType <IVatCalculationStrategy, OverSmallestPartsVatCalculationStrategy>(); // default } container.RegisterType <IStoreUrlRepository, UmbracoStorePickerStoreUrlRepository>(); // entity services (more registered in Umbraco part) container.RegisterType <IProductService, ProductService>(); container.RegisterType <IProductVariantGroupService, ProductVariantGroupService>(); container.RegisterType <IProductVariantService, ProductVariantService>(); container.RegisterType <ICategoryService, CategoryService>(); container.RegisterType <IOrderService, OrderService>(); container.RegisterType <IPaymentProviderService, PaymentProviderService>(); container.RegisterType <IShippingProviderService, ShippingProviderService>(); container.RegisterType <IDiscountService, DiscountService>(); container.RegisterType <IOrderDiscountService, OrderDiscountService>(); container.RegisterType <IProductDiscountService, ProductDiscountService>(); container.RegisterType <ICountryRepository, UwebshopApplicationCachedCountriesRepository>(); container.RegisterType <IVATCountryRepository, UwebshopApplicationCachedVATCountriesRepository>(); container.RegisterType <IOrderRepository, OrderRepository>(); container.RegisterType <IUwebshopConfiguration, UwebshopConfiguration>(); }
public override void DependencyRegistration(IRegistrationControl control) { control.RegisterType<IDataTypeDefinitions, DataTypes>(); }
public override void DependencyRegistration(IRegistrationControl control) { control.RegisterType<IApplicationCacheTokenService, AzureAppCacheTokenService>(); }
public override void DependencyRegistration(IRegistrationControl control) { control.RegisterType <IApplicationCacheTokenService, AzureAppCacheTokenService>(); }
public override void DependencyRegistration(IRegistrationControl control) { control.RegisterType <IProductUrlService, CatalogCategoryPlusProductUrlService>(); }
public override void DependencyRegistration(IRegistrationControl control) { control.RegisterType <IDataTypeDefinitions, DataTypes>(); }
public override void DependencyRegistration(IRegistrationControl container) { // CMS unaware services (uwebshop default) container.RegisterType<IDiscountCalculationService, DiscountCalculationService>(); container.RegisterType<IUrlRewritingService, UrlRewritingService>(); container.RegisterType<ICatalogUrlResolvingService, CatalogUrlResolvingService>(); container.RegisterType<IVATCheckService, ViesVatCheckService>(); container.RegisterType<IOrderUpdatingService, OrderUpdatingService>(); container.RegisterType<IOrderNumberService, OrderNumberService>(); container.RegisterType<IStockService, StockService>(); container.RegisterType<IUwebshopRequestService, UwebshopHttpContextRequestService>(); container.RegisterType<IInstaller, UwebshopDefaultInstaller>(); container.RegisterType<ICurrencyCultureInfoForLocalizationService, CurrencyCultureInfoForLocalizationService>(); container.RegisterType<IStoreFromUrlDeterminationService, StoreFromUrlDeterminationService>(); container.RegisterType<IDefaultCurrencyCultureService, ConfigFileDefaultCurrencyCultureService>(); if (System.Web.Configuration.WebConfigurationManager.AppSettings["uWebshopLoadBalanced"] == "true") { container.RegisterType<IApplicationCacheService, LoadBalancedApplicationCacheService>(); } else { container.RegisterType<IApplicationCacheService, LocalApplicationCacheService>(); } container.RegisterType<ICategoryCatalogUrlService, CategoryCatalogUrlService>(); container.RegisterType<IUrlFormatService, UrlFormatService>(); container.RegisterType<IUrlLocalizationService, StoreUrlInFrontBasedOnCurrentNodeUrlLocalizationService>(); container.RegisterType<IUrlService, UrlService>(); if (System.Web.Configuration.WebConfigurationManager.AppSettings["uWebshopCalculateVatOverTotal"] == "true") { container.RegisterType<IVatCalculationStrategy, OverTotalVatCalculationStrategy>(); } else { container.RegisterType<IVatCalculationStrategy, OverSmallestPartsVatCalculationStrategy>(); // default } container.RegisterType<IStoreUrlRepository, UmbracoStorePickerStoreUrlRepository>(); // entity services (more registered in Umbraco part) container.RegisterType<IProductService, ProductService>(); container.RegisterType<IProductVariantGroupService, ProductVariantGroupService>(); container.RegisterType<IProductVariantService, ProductVariantService>(); container.RegisterType<ICategoryService, CategoryService>(); container.RegisterType<IOrderService, OrderService>(); container.RegisterType<IPaymentProviderService, PaymentProviderService>(); container.RegisterType<IShippingProviderService, ShippingProviderService>(); container.RegisterType<IDiscountService, DiscountService>(); container.RegisterType<IOrderDiscountService, OrderDiscountService>(); container.RegisterType<IProductDiscountService, ProductDiscountService>(); container.RegisterType<ICountryRepository, UwebshopApplicationCachedCountriesRepository>(); container.RegisterType<IVATCountryRepository, UwebshopApplicationCachedVATCountriesRepository>(); container.RegisterType<IOrderRepository, OrderRepository>(); container.RegisterType<IUwebshopConfiguration, UwebshopConfiguration>(); }
public void Register(IRegistrationControl control) { control.RegisterType<IContentTypeAliassesXmlService, ContentTypeAliassesXmlService>(); ModuleFunctionality.Register(control); }