Presentation is loading. Please wait.

Presentation is loading. Please wait.

.NET 4.5, Just the good Stuff William Tulloch Senior Consultant Readify Mahesh Krishnan Principal Consultant Readify DEV215.

Similar presentations


Presentation on theme: ".NET 4.5, Just the good Stuff William Tulloch Senior Consultant Readify Mahesh Krishnan Principal Consultant Readify DEV215."— Presentation transcript:

1 .NET 4.5, Just the good Stuff William Tulloch Senior Consultant Readify Mahesh Krishnan Principal Consultant Readify DEV215

2

3

4

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

7

8

9

10 async/await

11 Demo A simple example async/await

12

13

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

24

25 Portable Class Libraries

26

27

28

29

30 Creating a simple REST service

31 Working with the HttpClient

32 Web Sockets

33

34 ASP.NET

35

36

37

38

39 WCF

40

41 Using WCF in a Windows 8 app

42 WPF

43

44 Workflow Foundation

45

46

47

48 MEF 2.0

49

50 MEF in Windows 8

51 The TPL

52

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#.”

55

56


Download ppt ".NET 4.5, Just the good Stuff William Tulloch Senior Consultant Readify Mahesh Krishnan Principal Consultant Readify DEV215."

Similar presentations


Ads by Google