示例#1
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddMediatR(typeof(Startup));
            services.AddControllers();
            services.AddSwaggerGen(c =>
            {
                c.SwaggerDoc("v1", new OpenApiInfo {
                    Title = "ProcessManager", Version = "v1"
                });
            });

            LoggerBootstrapper.Initialize();
            IoCBootstrapper.Initialize(services);
        }
示例#2
0
 public void SetUp()
 {
     LoggerBootstrapper.Initialize();
     IoCBootstrapper.Initialize();
 }
示例#3
0
 public void SetUp()
 {
     LoggerBootstrapper.Initialize();
     IoCBootstrapper.Initialize();
     new Installer().Install(LifeStyleType.Thread);
 }