示例#1
0
        public static OwinHost Start <TStartup>(string url)
        {
            var server = new OwinHost();

            server.Configure <TStartup>(new StartOptions {
                Urls = { url }
            });
            return(server);
        }
示例#2
0
        public static OwinHost Start(string url, Action <IAppBuilder> app)
        {
            var server = new OwinHost();

            server.Configure(app, new StartOptions {
                Urls = { url }
            });
            return(server);
        }