/// <summary> /// Initializes a new instance of the ViewModelLocator class. /// </summary> public ViewModelLocator() { var iocConfig = new IoCConfig(); iocConfig.RegisterRepositories(); iocConfig.RegisterProviders(); iocConfig.RegisterServices(); iocConfig.RegisterViewModels(); iocConfig.RegisterStores(); }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); IoCConfig.RegisterServices(); FluentValidationModelValidatorProvider.Configure(); }
public void ConfigureServices(IServiceCollection services) { services.AddControllersWithViews(); var eventbusConfig = new ConfigurationEventBus(); Configuration.Bind("ConfigurationEventBus", eventbusConfig); eventbusConfig.Application = "INCEPTION.WEB"; services.AddSingleton(eventbusConfig); services.AddSingleton <ILogEventBus, LogEventBus>(); IoCConfig.RegisterServices(services); }
internal void RegisterViewModels() { _iocConfig.RegisterServices(); _iocConfig.RegisterViewModel <MainPageViewModel>(); _iocConfig.RegisterViewModel <AppShellPageViewModel>(); _iocConfig.RegisterViewModel <CheckInternetPageViewModel>(); _iocConfig.RegisterViewModel <MainMenuViewModel>(); _iocConfig.RegisterViewModel <HomeViewModel>(); _iocConfig.RegisterViewModel <LanguagePageViewModel>(); _iocConfig.RegisterViewModel <SignupPageViewModel>(); _iocConfig.RegisterViewModel <LoginPageViewModel>(); _iocConfig.RegisterViewModel <RegisterPageViewModel>(); _iocConfig.RegisterViewModel <SaveAddressPageViewModel>(); _iocConfig.RegisterViewModel <SettingPageViewModel>(); _iocConfig.RegisterViewModel <AddNewAddressViewModel>(); _iocConfig.RegisterViewModel <EditSaveAddressViewModel>(); _iocConfig.RegisterViewModel <CustomersPageViewModel>(); _iocConfig.RegisterViewModel <ProductsPageViewModel>(); _iocConfig.RegisterViewModel <SportPageViewModel>(); _iocConfig.RegisterViewModel <OffersPageViewModel>(); _iocConfig.RegisterViewModel <NewsDetailsPageViewModel>(); _iocConfig.RegisterViewModel <BlogsPageViewModel>(); _iocConfig.RegisterViewModel <BlogsDetailsPageViewModel>(); _iocConfig.RegisterViewModel <MyOrderPageViewModel>(); _iocConfig.RegisterViewModel <MyOrderDetailsPageViewModel>(); _iocConfig.RegisterViewModel <ProfilePageViewModel>(); _iocConfig.RegisterViewModel <MyReviewsPageViewModel>(); _iocConfig.RegisterViewModel <EditMyReviewsPageViewModel>(); _iocConfig.RegisterViewModel <AccountSettinPageViewModel>(); _iocConfig.RegisterViewModel <CartPageViewModel>(); _iocConfig.RegisterViewModel <CartPageViewModel>(); _iocConfig.RegisterViewModel <EditCartPageViewModel>(); _iocConfig.RegisterViewModel <PaymentPageViewModel>(); _iocConfig.RegisterViewModel <SuccessPopupViewModel>(); _iocConfig.RegisterViewModel <ZoomImagePopUpViewModel>(); _iocConfig.RegisterViewModel <ProductViewPageViewModel>(); _iocConfig.RegisterViewModel <FilterPageViewModel>(); _iocConfig.RegisterViewModel <ProductDetailsPageViewModel>(); _iocConfig.RegisterViewModel <MainMenuMasterViewModel>(); _iocConfig.RegisterViewModel <PromotionPageViewModel>(); _iocConfig.RegisterViewModel <BookInstallationViewModel>(); _iocConfig.RegisterViewModel <WarningAdviceViewModel>(); _iocConfig.RegisterViewModel <AboutUsPageViewModel>(); _iocConfig.RegisterViewModel <TermsPageViewModel>(); _iocConfig.RegisterViewModel <OurPolicyViewModel>(); _iocConfig.RegisterViewModel <MyFavoritesViewModel>(); _iocConfig.RegisterViewModel <ContactusViewModel>(); _iocConfig.RegisterViewModel <PrivacySecurityViewModel>(); _iocConfig.RegisterViewModel <ReferAFriendViewModel>(); _iocConfig.RegisterViewModel <FAQsPageViewModel>(); _iocConfig.RegisterViewModel <BusinessLocationViewModel>(); _iocConfig.RegisterViewModel <GetQuotePageViewModel>(); _iocConfig.RegisterViewModel <GetQuoteDetailsPageViewModel>(); _iocConfig.RegisterViewModel <OrderTrackingViewModel>(); _iocConfig.RegisterViewModel <LiveCustomerServiceViewModel>(); _iocConfig.RegisterViewModel <ComplexPageViewModel>(); _iocConfig.RegisterViewModel <FeaturedProductPageViewModel>(); _iocConfig.RegisterViewModel <NotificationPageViewModel>(); _iocConfig.RegisterViewModel <SortPageViewModel>(); _iocConfig.RegisterViewModel <ForgetPasswordPageViewModel>(); }
// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { IoCConfig.RegisterServices(services); services.AddApiConfig(); services.AddSwaggerConfig(); }
public ViewModelLocator() { _iocConfig = new IoCConfig(); _iocConfig.RegisterServices(); _iocConfig.RegisterViewModels(); }
// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { IoCConfig.RegisterServices(services); services.AddSwaggerGen(); services.AddControllers(); }
/// <summary> /// This method called for register IoC of project /// </summary> /// <param name="services">Collection of configuration services of project</param> private static void RegisterServices(IServiceCollection services) { IoCConfig.RegisterServices(services); }