Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI...

58

Transcript of Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI...

Page 1: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 2: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

6百万

Page 3: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

Client ServicesClient/Server

Page 4: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

• 连接的IDE

• 主题和视觉设计• 编辑器增强• IDE的性能改进• 性能工具 & 调试• .NET 4.5.1

• One ASP.NET

• NuGet

Page 5: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 6: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 7: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

保持更新更方便地获取重要信息统一共用的位置

Page 8: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 9: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 10: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 11: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

改进的图标更好的定义区域和区间Hover colors

滚动条状态活动与非活动实例高密度显示屏上的体验改善

Page 12: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 13: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 14: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 15: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 16: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

自动封闭完成

上下移动行

增强的滚动条

新的导航到体验Peek

CodeLens

代码映射增强

查找对话框集成到编辑器

解决方案资源管理器的改进

新的项目模板

等等…

Page 17: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 18: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

解决方案加载IDE启动响应能力基于“客户体验改善计划”数据的改进

Page 19: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 20: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

可取消的符号加载错过的符号文件将被记录更智能的缓存提前检测坏的符号路径可信任源服务器

Page 21: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 22: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

所有的分析工具在同一个位置启动

Page 23: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 24: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 25: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 26: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

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!

Page 27: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

.NET 4.5.1的新功能

Page 28: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

• 在UserVoice上排名第9的特性要求!

• 和32位应用程序一样工作• 支持客户端(WPF, WinForms…),商店和ASP.NET

Web应用程序• 对Web应用程序项目需要在项目属性中启用编辑并继续

Page 29: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 30: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

在.NET代码上可用了!可在局部变量窗口或即时窗口($ReturnValue)查看可在调试器上展开返回值

Page 31: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

常见问题: 我怎么会到这?

支持Store Apps, Web apps, Desktop apps in W8.1

增强的调用堆栈和任务窗口

Visual Studio 2012Visual Studio 2013

Visual Studio 2013

Page 32: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 33: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 34: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

Web Forms

Websites

Web-pagesSingle-Page

AppsMVC Web API SignalR

Services

Page 35: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

ASP.NET

4.5

VS2012

2012

7月

ASP.NET

and Web

Tools

2012.2

2013

2月VS2013

2013

秋季

持续创新: 每6个月左右发布一次

Page 36: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

没有对任何ASP.NET技术“提前决定”统一的对话框

一个项目: Web Forms, MVC, Web API

在任何项目中添加任何框架

跨所有框架的脚手架

可配置的身份验证

使用Bootstrap做布局和样式项目模板基于Bootstrap.js

流行的CSS布局框架

更多可用的主题

面向One ASP.NET的全新脚手架系统基于你数据模型的Web应用程序代码生成

目标数据驱动和CRUD样板代码

Page 37: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 38: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

ASP.NET Identity

(又名Membership)

新的Membership

系统

One ASP.NET Identity

系统

支持基于声明的身份验证

与外部登录集成

Page 39: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 40: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

One ASP.NET 新的HTML编辑器

AngularJS集成

启用编辑并继续新Web应用默认设置

浏览器链接

Page 41: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 42: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

可作为独立NuGet包

Web API安全(CORS, OAuth 2.0)

Attribute routing

OWIN集成

Web API OData

ASP.NET Web API 2

Page 43: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

在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) { ... }

}

Page 44: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

将你的路由近似于你的资源

config.Routes.MapHttpRoute(name: “TodosForTodoList",routeTemplate: "api/todolists/{id}/todos",defaults: new { controller = “todolists”, action = “GetTodos” }

);

public IEnumerable<TodoItem> GetTodos() { … }

Page 45: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

将你的路由近似于你的资源

config.MapHttpAttributeRoutes();

[HttpGet("api/todolists/{id}/todos")]public IEnumerable<TodoItem> GetTodos(int id) { … }

Page 46: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

可选值 默认值

[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) { … }

Page 47: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

ASP.NET SignalR2.0

OWIN集成

Portable Class Library client

Xamarin client (iOS,Android,Mac)

C++ client for Windows

Page 48: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 49: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

不仅仅是代码源代码

每夜构建

问题跟踪

功能规划

设计会议记录

接受捐赠只有EF团队具有签入权限

与内部相同的代码审查处理过程

只会影响我们如何发展,而不是如何推进相同的license

相同的支持

相同的质量

Page 50: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 51: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 53: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

https://nuget.org/api/v2/curated-feeds/dotnetframework/

Visual Studio 20[10,12]

Page 54: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 55: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

令人惊奇的合作伙伴生态系统

Page 56: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web

获取更多信息

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/

Page 57: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web
Page 58: Client Client/Server Services - CSDN · 2019. 12. 24. · Client & Device •Async –for UI responsiveness •Windows Store apps -- WinRT •Windows Phone apps •.NET CF 3.9 Web