Esempio n. 1
0
        public SaasKitOwinAdapter(OwinMiddleware next, ISaasKitEngine engine) : base(next)
        {
            if (engine == null)
            {
                throw new ArgumentNullException("engine");
            }

            this.engine = engine;
        }
Esempio n. 2
0
        public SaasKitOwinAdapter(OwinMiddleware next, ISaasKitEngine engine) : base(next)
        {
            if (engine == null)
            {
                throw new ArgumentNullException("engine");
            }

            this.engine = engine;
        }
Esempio n. 3
0
        public static IAppBuilder UseSaasKit(this IAppBuilder app, ISaasKitEngine engine)
        {
            if (app == null)
            {
                throw new ArgumentNullException("app");
            }

            if (engine == null)
            {
                throw new ArgumentNullException("engine");
            }

            return(app.Use(typeof(SaasKitOwinAdapter), engine));
        }