Project which includes:
- Adds swager support.
- Request logging.
- Adds a new Serilog logging provider.
Add a reference to the Infrastructure project in MainProject.csproj
<ItemGroup>
<ProjectReference Include="..\FolderProject\Infrastructure.csproj" />
</ItemGroup>
or via IDE functions
In the asp.net main project, in the program.cs file, call the method AddInfrastructure
.
static IHostBuilder CreateHostBuilder(string[] args)
{
return Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); })
.AddInfrastructure();
}