This repository contains simple Owin Configuration store abstractions & implementation based on Confifu.Abstractions.IAppConfig
(checkout confifu here). Depends on Microsoft.Owin
's IAppBuilder
. Could be used by multiple modules to store their own IAppBuilder
customization in a single place.
The library is distributed as a nuget package Confifu.Owin
on nuget's official package feed.
To get started using it in a library:
public static IAppConfig RegisterMyAwesomeModule(this IAppConfig appConfig)
{
appConfig.UseOwin(c => {
c.AddConfiguration(appBuilder => {
// here goes IAppBiulder customization
appBuilder.Use(new MyMiddleware());
});
});
}
To apply stored configuration in your App:
public class Startup
{
public void Configuration(IAppBuilder appBuilder)
{
// setup & run your Confifu App
var app = new MyApp();
app.Setup().Run();
// here all IAppBuilder customizations from used modules are loaded
var owinConfiguration = app.AppConfig.GetOwinConfiguration();
owinConfiguration(appBuilder);
}
}
Use built-in github issue tracker
@ivanbenko
- Setup development environment:
- Clone the repo
.paket\paket restore
build target=build