Setup initial solution structure fo application

This commit is contained in:
Giovani
2019-04-19 22:00:29 +00:00
parent 68dffc8922
commit 3ed561ba0a
9 changed files with 112 additions and 46 deletions

View File

@@ -2,6 +2,8 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using BrightGlimmer.Data;
using MediatR;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
@@ -26,6 +28,8 @@ namespace BrightGlimmer.Api
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
services.AddMediatR();
services.AddMediatR(typeof(Cqrs.Cqrs).Assembly); // Registers handlers in Cqrs project
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
@@ -44,4 +48,4 @@ namespace BrightGlimmer.Api
app.UseMvc();
}
}
}
}