Skip to content

Alexandrjob/InfrastructureAspNetCoreLibrary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

InfrastructureAspNetCoreLibrary

Project which includes:

  1. Adds swager support.
  2. Request logging.
  3. Adds a new Serilog logging provider.

Development

Reference

Add a reference to the Infrastructure project in MainProject.csproj

<ItemGroup>
        <ProjectReference Include="..\FolderProject\Infrastructure.csproj" />
</ItemGroup>

or via IDE functions

Call the method

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();
}

About

Library that contains frequently used code.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages