/// <summary>Used to register concrete implemtations to the DI container</summary> /// <param name="registrar">add implementation to the DI container using this registrar</param> public void Initialize(IModuleRegistrar registrar) { //You can register as many types as you want into the Container registrar.RegisterTypeAsSingelton <IExternalProductService, WALMARTProductService>("Walmart"); registrar.RegisterTypeAsSingelton <IExternalProductService, WALMARTProductService>(); }
/// <summary>Used to register concrete implementations to the DI container</summary> /// <param name="registrar">add implementation to the DI container using this registrar</param> public void Initialize(IModuleRegistrar registrar) { Contract.Requires(registrar != null); registrar.RegisterTypeAsSingelton <ICipher, RijndaelManagedCipher>(); registrar.RegisterTypeAsSingelton <ISecurity, SecurityService>(); }
/// <summary>Used to register concrete implemtations to the DI container</summary> /// <param name="registrar">add implementation to the DI container using this registrar</param> public void Initialize(IModuleRegistrar registrar) { //You can register as many types as you want into the Container registrar.RegisterTypeAsSingelton <IExternalProductService, BESTBUYProductService>("BestBuy"); registrar.RegisterTypeAsSingelton <IExternalProductService, BESTBUYProductService>(); }
/// <summary>Used to register concrete implementations to the DI container</summary> /// <param name="registrar">add implementation to the DI container using this registrar</param> public void Initialize(IModuleRegistrar registrar) { Contract.Requires(registrar != null); registrar.RegisterTypeAsSingelton <DbContextOptions <GenericContext>, DbContextOptions <GenericContext> >(SettingsManager.DBOptions); registrar.RegisterType <GenericContext, GenericContext>(); registrar.RegisterType <IGenericRepo, GenericRepo>(); }
/// <summary>Used to register concrete implementations to the DI container</summary> /// <param name="registrar">add implementation to the DI container using this registrar</param> public void Initialize(IModuleRegistrar registrar) { Contract.Requires(registrar != null); //You can register as many types as you want into the Container //registrar.RegisterType<ITest, Test>(); //registrar.RegisterTypeAsSingelton<ITest, Test>(); registrar.RegisterTypeAsSingelton <ICaptcha, GoogleRecaptcha>(); }
/// <summary>Used to register concrete implemtations to the DI container</summary> /// <param name="registrar">add implementation to the DI container using this registrar</param> public void Initialize(IModuleRegistrar registrar) { registrar.RegisterTypeAsSingelton <IDAL, DALMoq>(); }
/// <summary>Used to register concrete implemtations to the DI container</summary> /// <param name="registrar">add implementation to the DI container using this registrar</param> public void Initialize(IModuleRegistrar registrar) { registrar.RegisterTypeAsSingelton <ICipher, TripleDES>(); registrar.RegisterTypeAsSingelton <ISecurity, SecurityService>(); }
/// <summary>Used to register concrete implementations to the DI container</summary> /// <param name="registrar">add implementation to the DI container using this registrar</param> public void Initialize(IModuleRegistrar registrar) { Contract.Requires(registrar != null); registrar.RegisterTypeAsSingelton <ISecurity, SecurityMock>(); }
/// <summary>Used to register concrete implemtations to the DI container</summary> /// <param name="registrar">add implementation to the DI container using this registrar</param> public void Initialize(IModuleRegistrar registrar) { registrar.RegisterTypeAsSingelton <ISecurity, SecurityMoq>(); }
/// <summary>Used to register concrete implementations to the DI container</summary> /// <param name="registrar">add implementation to the DI container using this registrar</param> public void Initialize(IModuleRegistrar registrar) { Contract.Requires(registrar != null); registrar.RegisterTypeAsSingelton <IProxy, Proxy>(); }
/// <summary>Used to register concrete implemtations to the DI container</summary> /// <param name="registrar">add implementation to the DI container using this registrar</param> public void Initialize(IModuleRegistrar registrar) { registrar.RegisterType <IBL, BL>(); registrar.RegisterTypeAsSingelton <HashHelpers, HashHelpers>(); }
/// <summary>Used to register concrete implemtations to the DI container</summary> /// <param name="registrar">add implementation to the DI container using this registrar</param> public void Initialize(IModuleRegistrar registrar) { registrar.RegisterType <IDAL, DAL>(); registrar.RegisterTypeAsSingelton <BusContext, BusContext>(); }