Download presentation
Presentation is loading. Please wait.
Published byMarion Lambert Modified over 9 years ago
1
.NET 4.5, Just the good Stuff William Tulloch Senior Consultant Readify Mahesh Krishnan Principal Consultant Readify DEV215
5
February 2002.NET 1.0 April 2003.NET 1.1 January 2006.NET 2.0 November 2006.NET 3.0 November 2007.NET 3.5 April 2010.NET 4.0 August 2012
6
.NET 4.5
10
async/await
11
Demo A simple example async/await
14
Identity
15
IIdentity WindowsIdentityGenericIdentityFormsIdentity
16
public interface IIdentity { string AuthenticationType{ get; } bool IsAuthenticated{ get; } string Name{ get; } } public interface IIdentity { string AuthenticationType{ get; } bool IsAuthenticated{ get; } string Name{ get; } }
17
IPrincipal WindowsPrincipalGenericPrincipalFormsPrincipal
18
public interface IPrincipal { IIdentity Identity{ get; } bool IsInRole(string role); } public interface IPrincipal { IIdentity Identity{ get; } bool IsInRole(string role); }
19
ClaimsIdentity WindowsIdentityGenericIdentityFormsIdentity IIdentity
20
public class ClaimsIdentity : IIdentity { //constructors removed to simply view // Properties public virtual string Name { get; } public virtual string AuthenticationType { get; } public virtual bool IsAuthenticated { get; } public virtual IEnumerable Claims { get; } public ClaimsIdentity Actor { get; set; } public object BootstrapContext { get; set; } public string Label { get; set; } public string NameClaimType { get; } public string RoleClaimType { get; } //Helper methods for working with claims removed } public class ClaimsIdentity : IIdentity { //constructors removed to simply view // Properties public virtual string Name { get; } public virtual string AuthenticationType { get; } public virtual bool IsAuthenticated { get; } public virtual IEnumerable Claims { get; } public ClaimsIdentity Actor { get; set; } public object BootstrapContext { get; set; } public string Label { get; set; } public string NameClaimType { get; } public string RoleClaimType { get; } //Helper methods for working with claims removed }
21
ClaimsPrincipal WindowsPrincipalGenericPrincipalFormsPrincipal IPrincipal
22
public class ClaimsPrincipal : IPrincipal { // Properties public virtual IIdentity Identity { get; } public virtual IEnumerable Claims { get; } public static ClaimsPrincipal Current { get; } public virtual IEnumerable Identities { get; } public virtual bool IsInRole(string role); //Helper methods for claims removed } public class ClaimsPrincipal : IPrincipal { // Properties public virtual IIdentity Identity { get; } public virtual IEnumerable Claims { get; } public static ClaimsPrincipal Current { get; } public virtual IEnumerable Identities { get; } public virtual bool IsInRole(string role); //Helper methods for claims removed }
23
A quick look at claims
25
Portable Class Libraries
30
Creating a simple REST service
31
Working with the HttpClient
32
Web Sockets
34
ASP.NET
39
WCF
41
Using WCF in a Windows 8 app
42
WPF
44
Workflow Foundation
48
MEF 2.0
50
MEF in Windows 8
51
The TPL
53
TPL Dataflow
54
“TPL Dataflow (TDF) is a new.NET library for building concurrent applications. It promotes actor/agent-oriented designs through primitives for in-process message passing, dataflow, and pipelining. TDF builds upon the APIs and scheduling infrastructure provided by the Task Parallel Library (TPL), and integrates with the language support for asynchrony provided by C#, Visual Basic, and F#.”
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.