public static IDiContainerConfigurator UseGenericDal(this IDiContainerConfigurator configurator) { configurator.Register(typeof(IRepository <>), typeof(GenericEntityRepository <>), ContainerEntityLifestyle.Scoped); configurator.Register(typeof(IEntityReader <>), typeof(EntityReader <>), ContainerEntityLifestyle.Scoped); return(configurator); }
public static IDiContainerConfigurator UseOperations(this IDiContainerConfigurator configurator) { configurator.Register <IOperationServicesFactory, OperationServicesFactory>(ContainerEntityLifestyle.Scoped); configurator.Register <IHandlingScopeFactory, HandlingScopeFactory>(ContainerEntityLifestyle.Scoped); configurator.Register <IHandlingScopesStack <HandlingScope>, HandlingScopesStack>(ContainerEntityLifestyle.Scoped); configurator.Register <IHandlingScopesAnalyzer, HandlingScopesAnalyzer>(ContainerEntityLifestyle.Scoped); return(configurator); }
public static IDiContainerConfigurator UseDiContainer <TContainerAccessor>(this IDiContainerConfigurator configurator) where TContainerAccessor : class, IDiContainerAccessor { configurator.Register <IDiContainerAccessor, TContainerAccessor>(ContainerEntityLifestyle.Scoped); return(configurator); }
public static IDiContainerConfigurator UseOperationServices(this IDiContainerConfigurator configurator, params Assembly[] assemblies) { configurator.Register(typeof(IOperationService <,>), assemblies, ContainerEntityLifestyle.Scoped); return(configurator); }
public static IDiContainerConfigurator UseMappingContextConfigs(this IDiContainerConfigurator configurator, Assembly assembly) { configurator.Register(typeof(IMappingContextConfig <>), assembly, ContainerEntityLifestyle.Singleton); return(configurator); }
public static IDiContainerConfigurator UseMapping(this IDiContainerConfigurator configurator) { configurator.Register(typeof(IContextualMapper <>), typeof(ContextualMapper <>), ContainerEntityLifestyle.Scoped); return(configurator); }