Exemple #1
0
        private void Run()
        {
            var autofacSetup = new AutofacSetup();
            var container = autofacSetup.Run();

            var autoMapperSetup = new AutoMapperSetup();
            autoMapperSetup.Run();

            HostFactory.Run(configurator => SetupService(configurator, container));
        }
Exemple #2
0
        private void Run()
        {
            var autofacSetup = new AutofacSetup();
            var container    = autofacSetup.Run();

            var autoMapperSetup = new AutoMapperSetup();

            autoMapperSetup.Run();

            HostFactory.Run(configurator => SetupService(configurator, container));
        }