コード例 #1
0
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddControllers();
            services.AddLogging(builder => builder.AddConsole());
            services.AddMvc();

            var loader = new ComponentLoader(services);

            loader.AddFromAssembly(Assembly.GetExecutingAssembly());

            ConfigureMetrics(_configuration, services);
            ConfigureReporting(_configuration, services);
            RegisterConfigurations(_configuration, services);
        }