Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI...
Transcript of Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI...
6百万
Client ServicesClient/Server
• 连接的IDE
• 主题和视觉设计• 编辑器增强• IDE的性能改进• 性能工具 & 调试• .NET 4.5.1
• One ASP.NET
• NuGet
保持更新更方便地获取重要信息统一共用的位置
改进的图标更好的定义区域和区间Hover colors
滚动条状态活动与非活动实例高密度显示屏上的体验改善
自动封闭完成
上下移动行
增强的滚动条
新的导航到体验Peek
CodeLens
代码映射增强
查找对话框集成到编辑器
解决方案资源管理器的改进
新的项目模板
等等…
解决方案加载IDE启动响应能力基于“客户体验改善计划”数据的改进
可取消的符号加载错过的符号文件将被记录更智能的缓存提前检测坏的符号路径可信任源服务器
所有的分析工具在同一个位置启动
Client & Device
• Async – for UI
responsiveness
• Windows Store
apps -- WinRT
• Windows Phone
apps
• .NET CF 3.9
Web & Cloud
• Async – for server
scaling
• ASP.NET MVC4
• ASP.NET Web API
• ASP.NET Web
Pages
• Entity Framework
Code-First
• WebSockets
• SignalR
• Windows Azure
Cloud Services 4.5
Support
• Windows Azure
Web Sites
Fundamentals
• .NET Async (async
+ await)
• Many new async
APIs
• WinRT interop
• Multi-core JIT
• MPGO – NGEN
hot/cold splitting
• Performance
improvements
• Reboot and
reliability
improvements to
setup
• Support Windows
RT
GC
• Background GC
• LOH heap
balancing
• LOH
fragmentation
reduction
• GC low latency
mode
• GC awareness of
NUMA and >64
processors
• >2GB arrays (or
objects)
Libraries
• Portable libraries
update
• .NET Core Profile
(Windows 8)
• Extension methods
for WinRT streams
and async
• NuGet
• Immutable
collections
• Async for .NET 4
• HttpClient for
Portable
超过1亿台机器安装了.NET 4.5!
.NET 4.5.1的新功能
• 在UserVoice上排名第9的特性要求!
• 和32位应用程序一样工作• 支持客户端(WPF, WinForms…),商店和ASP.NET
Web应用程序• 对Web应用程序项目需要在项目属性中启用编辑并继续
在.NET代码上可用了!可在局部变量窗口或即时窗口($ReturnValue)查看可在调试器上展开返回值
常见问题: 我怎么会到这?
支持Store Apps, Web apps, Desktop apps in W8.1
增强的调用堆栈和任务窗口
Visual Studio 2012Visual Studio 2013
Visual Studio 2013
Web Forms
Websites
Web-pagesSingle-Page
AppsMVC Web API SignalR
Services
ASP.NET
4.5
VS2012
2012
7月
ASP.NET
and Web
Tools
2012.2
2013
2月VS2013
2013
秋季
持续创新: 每6个月左右发布一次
没有对任何ASP.NET技术“提前决定”统一的对话框
一个项目: Web Forms, MVC, Web API
在任何项目中添加任何框架
跨所有框架的脚手架
可配置的身份验证
使用Bootstrap做布局和样式项目模板基于Bootstrap.js
流行的CSS布局框架
更多可用的主题
面向One ASP.NET的全新脚手架系统基于你数据模型的Web应用程序代码生成
目标数据驱动和CRUD样板代码
ASP.NET Identity
(又名Membership)
新的Membership
系统
One ASP.NET Identity
系统
支持基于声明的身份验证
与外部登录集成
One ASP.NET 新的HTML编辑器
AngularJS集成
启用编辑并继续新Web应用默认设置
浏览器链接
可作为独立NuGet包
Web API安全(CORS, OAuth 2.0)
Attribute routing
OWIN集成
Web API OData
ASP.NET Web API 2
在Web API中启用CORS每个Action
每个Controller
全局
[EnableCors(origins: "http://www.example.com", headers: "*", methods: "*")]public class ItemsController : ApiController{
public HttpResponseMessage GetAll() { ... }public HttpResponseMessage GetItem(int id) { ... }public HttpResponseMessage Post() { ... }
[DisableCors]public HttpResponseMessage PutItem(int id) { ... }
}
将你的路由近似于你的资源
config.Routes.MapHttpRoute(name: “TodosForTodoList",routeTemplate: "api/todolists/{id}/todos",defaults: new { controller = “todolists”, action = “GetTodos” }
);
public IEnumerable<TodoItem> GetTodos() { … }
将你的路由近似于你的资源
config.MapHttpAttributeRoutes();
[HttpGet("api/todolists/{id}/todos")]public IEnumerable<TodoItem> GetTodos(int id) { … }
可选值 默认值
[HttpGet(“Demographics/{zipcode?}")]public Demographics Get(int? zipcode) { … }
[HttpGet("Demographics/{zipcode=98052}")]public Demographics Get(int zipcode) { … }
[HttpGet("people/{id:int}")]public Person Get(int id) { … }
[HttpGet("people/{name:alpha}")]public Person Get(string name) { … }
ASP.NET SignalR2.0
OWIN集成
Portable Class Library client
Xamarin client (iOS,Android,Mac)
C++ client for Windows
不仅仅是代码源代码
每夜构建
问题跟踪
功能规划
设计会议记录
接受捐赠只有EF团队具有签入权限
与内部相同的代码审查处理过程
只会影响我们如何发展,而不是如何推进相同的license
相同的支持
相同的质量
https://nuget.org/api/v2/curated-feeds/dotnetframework/
Visual Studio 20[10,12]
令人惊奇的合作伙伴生态系统
获取更多信息
http://www.microsoft.com/NET
http://msdn.microsoft.com/en-us/dn338450
http://msdn.microsoft.com/en-US/vstudio/aa496123
http://www.microsoft.com/visualstudio/