HCI.AspNetCore.Extensions is a .net standard 2.0 library for dealing with AspNetCore projects.
Use the package manager nuget to install HCI.AspNetCore.Extensions.
nuget install HCI.AspNetCore.Extensions
ServiceCollectionExtensions are used in the StartUp class.
using HCI.AspNetCore.Extensions;
public void ConfigureServices(IServiceCollection services)
{
services.AddCustomApiVersioning();
}
WebHostExtensions are used in the Program.cs class.
using HCI.AspNetCore.Extensions;
public static void Main(string[] args)
{
var host = CreateWebHostBuilder(args)
.Build()
.ApplyPendingDatabaseMigrations<DbContext>();
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.