public TenantOwinAdapter(OwinMiddleware next, ITenantEngine engine) : base(next) { if (engine == null) { throw new ArgumentNullException("engine"); } this.engine = engine; }
public static IAppBuilder UseMultiTenancy(this IAppBuilder app, ITenantEngine engine) { if (app == null) { throw new ArgumentNullException("app"); } if (engine == null) { throw new ArgumentNullException("engine"); } return(app.Use(typeof(TenantOwinAdapter), engine)); }
public static IAppBuilder UseMultiTenancy(this IAppBuilder app, ITenantEngine engine) { if (app == null) { throw new ArgumentNullException("app"); } if (engine == null) { throw new ArgumentNullException("engine"); } return app.Use(typeof(TenantOwinAdapter), engine); }