Beispiel #1
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            services.ConfigureAzureB2C(Configuration);
            ConfigureCore.Configure(services);
            ConfigureStorage.Configure(services, Configuration);
            ConfigureDomain.Configure(services);
            ConfigureProxy.Configure(services);

            services.ConfigureServices();
        }
Beispiel #2
0
        public static IServiceCollection ConfigureServices()
        {
            var services = new ServiceCollection();

            var configuration = new ConfigurationBuilder()
                                .AddJsonFile("appsettings.json")
                                .Build();

            Log.Logger = new LoggerConfiguration()
                         .ReadFrom.Configuration(configuration)
                         .CreateLogger();

            services.AddLogging(configure => configure.AddSerilog());

            ConfigureDal.Configure(services);
            ConfigureShopServices.Configure(services);
            ConfigureDomain.Configure(services);

            services.AddTransient <TestClient>();

            return(services);
        }