Exemplo n.º 1
0
        public TenantOwinAdapter(OwinMiddleware next, ITenantEngine engine) : base(next)
        {
            if (engine == null)
            {
                throw new ArgumentNullException("engine");
            }

            this.engine = engine;
        }
Exemplo n.º 2
0
        public TenantOwinAdapter(OwinMiddleware next, ITenantEngine engine) : base(next)
        {
            if (engine == null)
            {
                throw new ArgumentNullException("engine");
            }

            this.engine = engine;
        }
Exemplo n.º 3
0
        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));
        }
Exemplo n.º 4
0
        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);
        }