在进入mvc5之后,OWIN变更很主推,很热,关于OWIN的文章也就出来了,下面阅读了dudu和一些园友的文章,自己也做了一个SelfHost的程序,测试了一下,感觉还是比较有Core的风格,可能也是面向多平台部署考虑的吧!

OWIN的英文全称是Open Web Interface for .NET。

如果仅从名称上解析,可以得出这样的信息:OWIN是针对.NET平台的开放Web接口。

那Web接口是谁和谁之间的接口呢?是Web应用程序与Web服务器之间的接口,OWIN就是.NET Web应用程序与Web服务器之间的接口。

大叔喜欢的一句话:OWIN将多种应用框架使用统一的接口来实现各框架之间的适配!

下面是WEB测试DEMO的一段代码,它可以添加多种登陆的策略

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAf8AAAEoCAIAAADZqG9+AAAgAElEQVR4nO2dvY7ctteHeRN7FS41V+BcQq6AUO/apWsBU7jYwm1cbRUQyBQxFkiTxoALNyoydmUsAvhfBW83ld5CX/w41EgraUazfBZPkdASeUiNfjo8pI7U6VQBAEBqqKtbAAAAlwf1BwBIkaupv3lQ6p3Lw0E48muu3u2Kp+p0Ouh3uekK24PNw654qk5P++x+X9onPu2z7nifY3Gv1Ltd8Zj7NjSnHIv7utGqfNxlj0fr3N4MoQshVqdqU8vHndRobdKE2mrKx53+KvXxaa9ts60RkwfZ/lfx4K/hWIXjVo9PM3T9id6leR6xC/q0z2xL7vdlZ793ykAXbAv735JwUeQfgz1iX3P3mPqw1rCBdqXf2Lo9hbS5pu9vHlSjXF9z9XAIZLETkWNxr7LHY39bdj965zHg/7LLx51Q8k6pd6pTzObhUR/g3PZ267acRe7MU2UeVHDbO00P/OsZBEFpxy1+M9td64d6+EJ01Yrq3xdGx8S/iPf7wntGPhxEVR2jUOEFjVyCY3G/y+7tZ9Ignusg/wykCyH9Du1j2tFoK/Gv40EP9HTgab1UTyFtFlJ/0S8b8r6rU6D+rrAei3vh3EZDu+Pdn7J5UPrrQUc0RX9tTq/95ab1MYrvCN9z1N88RGY2IxHV372TnceYf4A8Jq3iH/S73Jz1Fseof33F7WfS0z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qX9VFjvf/Tc5ScoAADbCMuovZCsLv9OC+gMAbIZl9vyUxS5IVUbwBwBgu6zm+6P+AAAbZq24fyzyQ0Z7AIAtcMFV3zqdPTtBAQA2wCV3fB6LDN8fAGATXOhtr/qtYKQfAGAjrJDpweSEdwAANg5Z3gAAUgT1BwBIEdQfACBFUH8AgBRB/QEAUgT1BwBIEdQfACBF/h/Sp+UvnuVXyQAAAABJRU5ErkJggg==" alt="" />

DUDU文章:http://www.cnblogs.com/dudu/p/what-is-owin.html

安装OWIN自宿主的包包

Install-Package Microsoft.AspNet.WebApi.OwinSelfHost

添加startup这个类,主要为应用程序的入口

    /// <summary>
/// OWIN应用程序入口
/// </summary>
public partial class Startup
{
public void Configuration(IAppBuilder app)
{ HttpConfiguration config = new HttpConfiguration(); config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);
//将默认xml返回数据格式改为json
config.Formatters.XmlFormatter.SupportedMediaTypes.Clear();
config.Formatters.JsonFormatter.MediaTypeMappings.Add(new QueryStringMapping("datatype", "json", "application/json")); app.UseWebApi(config);
// 有关如何配置应用程序的详细信息,请访问 http://go.microsoft.com/fwlink/?LinkID=316888 }
}

添加几个测试用的Controller,其实就是webapi或者webmvc里的controller,这里以webapi为例,来说一下。

   public class HomeController : ApiController
{
public object Get()
{
return new { code = , msg = "OK HomeController" };
}
}
public class VideoController : ApiController
{
public object Get()
{
return new { code = , msg = "OK VideoController" };
}
}

添加主程序的入口,在入口中我们将添加startup的注入点,让Owin为我们启动这个startup!

     string baseAddress = "http://192.168.2.71:9000/";
Microsoft.Owin.Hosting.WebApp.Start<Startup>(url: baseAddress);
Console.WriteLine("程序已启动,按任意键退出");
Console.ReadLine();

下面我们打开浏览器,访问一下URL即可看到时结果了

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQIAAAA9CAIAAADJdvDLAAAKK0lEQVR4nO2caVBVyRXH79dxnEQdnYyQGAVEEGW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DsgwMT0mysMss7CzBDxwh+mb7D/3PO3OwlnmmHN8ZIhhwozNCFVzdzE6Vgl3BpR2f9LEqxqcw06RSyRr3Yb7Fv5ZYstAPbGaLTOiQxuwh5reBeQvz28DsBtA/hkSyUF0Z7ROZmZMKlYZ3UFng6aoI8TV3ZBt1pj4zl38IVj9QQg2dSv3iqpX8vQN6gYDdA6LGetXUADB3xS3MnxszpmvgWDW1A7QCNmddzsC5frd5dw+zh7T5fKPmAm8J/DbEdwPoB0MiWfoH+xkh6NfuHgEAwGYYJAviPU8O7p8PAIPI8EgWAACGFpAsAADIDyQLAADyA8kCAID8QLIAACA/IsmiVsLoLQAABiOhzaJRKWEEFwAAQ5DSG1IrodUCAIAhQLIAACA/kCwAAMgPJAsAAPIjJVk0KgVECwAABiDxfBa1Ei7xAwBAMpKSBbpDAAAYBNRZAACQH0gWAADkB5IFAAD5gWQBAEB+IFkAAJAfCcmiVsKAMwAABgF3UQAAQH7gzk8AAMgPJAsAAPIDyQIAgPxAsgAAID+QLAAAyA8kCwAA8gPJAgCA/ECyAAAgP5AsAADIDyQLAADyA8kCAID8QLIAACA/kCwAAMgPJAsAAPIDyQIAgPxAsgAAID+QLAAAyA8kCwAA8gPJAgCA/ECyAAAgP5AsAADIDyQLAADyA8kCAID8QLIAACA/kCwAAMgPJAsAAPIDyQIAgPxAsgAAID+QLAAAyA8kCwAA8gPJAgCA/Px/jfPK9MsWqdMAAAAASUVORK5CYII=" alt="" />

框架系列~OwinSelfHost自宿主的使用的更多相关文章

  1. Quartz.NET开源作业调度框架系列

    Quartz.NET是一个被广泛使用的开源作业调度框架 , 由于是用C#语言创建,可方便的用于winform和asp.net应用程序中.Quartz.NET提供了巨大的灵活性但又兼具简单性.开发人员可 ...

  2. 老周的ABP框架系列教程 -》 一、框架理论初步学习

    老周的ABP框架系列教程 -- 一.框架理论初步学习   1. ABP框架的来源与作用简介 1.1  简介 1.1.1       ABP框架全称为"ASP.NET Boilerplate ...

  3. Google C++测试框架系列:入门

    Google C++测试框架系列:入门 原始链接:V1_6_Primer 注 GTest或者Google Test: Google的C++测试框架. Test Fixtures: 这个词实在找不到对应 ...

  4. Spring框架系列之AOP思想

    微信公众号:compassblog 欢迎关注.转发,互相学习,共同进步! 有任何问题,请后台留言联系! 1.AOP概述 (1).什么是 AOP AOP 为 Aspect Oriented Progra ...

  5. SpringMVC 框架系列之初识与入门实例

    微信公众号:compassblog 欢迎关注.转发,互相学习,共同进步! 有任何问题,请后台留言联系! 1.SpringMVC 概述 (1). MVC:Model-View-Control Contr ...

  6. SpringMVC 框架系列之组件概述与配置详解

    在上一篇文章 SpringMVC 框架系列之初识与入门实例 的实例中,我们已经知道,SpringMVC 框架是一个 web 层的框架,本篇文章就详细解释一下 SpringMVC 框架具体文件的配置以及 ...

  7. 2019 年起如何开始学习 ABP 框架系列文章-开篇有益

    2019 年起如何开始学习 ABP 框架系列文章-开篇有益 [[TOC]] 本系列文章推荐阅读地址为:52ABP 开发文档 https://www.52abp.com/Wiki/52abp/lates ...

  8. MyBatis 框架系列之基础初识

    MyBatis 框架系列之基础初识 1.什么是 MyBatis MyBatis 本是 apache 的一个开源项目 iBatis,后改名为 MyBatis,它 是一个优秀的持久层框架,对 jdbc 的 ...

  9. 从零开始搭建android框架系列(转)

    网址:从零开始搭建android框架系列 githup:https://github.com/CameloeAnthony/Ant

随机推荐

  1. Swift简单介绍 教程

     Swift是什么? Swift是苹果于WWDC 2014公布的编程语言.这里引用The Swift Programming Language的原话: Swift is a new programmi ...

  2. 自动填充输入框 Asp .Net Mvc

    1 效果 当在一个文本框中输入时,可以自动查找相关选项,然后加载出来以供参考   2 前台代码   <link href="~/Content/themes/base/jquery-u ...

  3. 接口测试工具--Fiddler 的使用

    代码部分 Rules -> Customize Rules  打开Fiddler ScriptEditor,这里可以通过修改脚本中某些方法( OnBeforeRequest(oSession: ...

  4. 用SQL脚本 生成INSERT SQL语句

    配置表B 中的数据,可以从A表中查询到,在实际配置时,通过sql脚本生成B表的insert脚本,最多用到的是sql中连接符[||],以及双引号[''''] 例1:电销系统中地区出单机构关系表配置数据生 ...

  5. C#&.NET高级面试题

    转自http://chaoyouzhuo.blog.163.com/blog/static/1263760012011109114131316/ 1. DateTime.Parse(myString) ...

  6. 全局最小割模版 n^3

    //点标从0-n-1, 開始时先init 复杂度n^3 //对于边(u,v,flow): //g[u][v]+=flow; //g[v][u]+=flow; typedef long long ll; ...

  7. NDK编程中如何在C文件中打印调试信息

      1,在Android.mk文件中加上 LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog LOCAL_PATH := $(call my-dir)include ...

  8. caioj1272&&codeforces 148D: 概率期望值3:抓老鼠

    这道真的是好题,不卡精度,不卡细节,但是思考的方式很巧妙! 一开始大家跟我想的应该差不多,用f[i][j]表示有i只白老鼠,j只黑老鼠的胜率,然后跑DP,然后我就发现,这样怎么做?还有一种不胜不负的平 ...

  9. 织梦万能调用LOOP标签!

    1,安装DEDE织梦程序时候,数据库名称设置独立的一个.   2,雨田SEOER这里用的是在织梦本地文件夹中新建myblog文件夹,然后里面装入emlog_5.3.0的安装文件.URL地址栏输入htt ...

  10. js的location对象

    js的location对象 location基础知识 BOM(浏览器对象模型)中最有用的对象之一就是location,它是window对象和document对象的属性.location对象表示载入窗口 ...