src/Inflatable/Modules/InflatableModule.cs
/// <summary>
/// Loads the module using the bootstrapper
/// </summary>
/// <param name="bootstrapper">The bootstrapper.</param>
Loads the module using the bootstrapper
Loads the module using the bootstrapper
public void Load(IBootstrapper bootstrapper)
        {
            bootstrapper?.RegisterAll<IMapping>()
                .RegisterAll<IDatabase>()
                .RegisterAll<QueryProvider.Interfaces.IQueryProvider>()
                .Register<MappingManager>(ServiceLifetime.Singleton)
                .Register<SchemaManager>(ServiceLifetime.Singleton)
                .Register<QueryProviderManager>(ServiceLifetime.Singleton)
                .Register<Session>()
                .Register<ISession, Session>()
                .RegisterAll<IStartMethodHelper>(ServiceLifetime.Singleton)
                .RegisterAll<IInterfaceImplementationHelper>(ServiceLifetime.Singleton)
                .RegisterAll<IEndMethodHelper>(ServiceLifetime.Singleton)
                .Register(typeof(QueryTranslator<>));
        }
public void Load ( IBootstrapper bootstrapper ) { bootstrapper ? . RegisterAll < IMapping > ( ) . RegisterAll < IDatabase > ( ) . RegisterAll < QueryProvider . Interfaces . IQueryProvider > ( ) . Register < MappingManager > ( ServiceLifetime . Singleton ) . Register < SchemaManager > ( ServiceLifetime . Singleton ) . Register < QueryProviderManager > ( ServiceLifetime . Singleton ) . Register < Session > ( ) . Register < ISession , Session > ( ) . RegisterAll < IStartMethodHelper > ( ServiceLifetime . Singleton ) . RegisterAll < IInterfaceImplementationHelper > ( ServiceLifetime . Singleton ) . RegisterAll < IEndMethodHelper > ( ServiceLifetime . Singleton ) . Register ( typeof ( QueryTranslator < > ) ) ; }
Loads the module using the bootstrapper
Loads the module using the bootstrapper
bootstrapper
IBootstrapper
None