Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to ASP.NET Core

Similar presentations


Presentation on theme: "Introduction to ASP.NET Core"— Presentation transcript:

1 Introduction to ASP.NET Core
Jordan Knight Technical Evangelist, Microsoft

2 Workloads evolution .NET 5/11/2018 Multi- Framework .NET Core
Desktop & ASP.NET Windows Mobile Browsers & Win Phone Windows Store ASP.NET Core Framework Compact Framework Silverlight .NET Core Multi- Framework © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

3 The .NET Family .NET FRAMEWORK .NET CORE XAMARIN
Platform for .NET applications on Windows .NET CORE Cross-platform and open source framework optimized for modern app needs and developer workflows XAMARIN Cross-platform and open source Mono-based runtime for iOS, OS X, and Android devices Distributed with Windows Distributed with app

4 Fully Open Source .NET Core and ASP.NET Core are fully open source.
5/11/ :15 AM Fully Open Source .NET Core and ASP.NET Core are fully open source. Microsoft communities are among the most populous Microsoft Ignite © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

5 ASP.NET Core and the Modern Web
5/11/2018 ASP.NET Core and the Modern Web Totally Modular Faster Development Cycle Seamless transition from on-premises to cloud Choose your Editors and Tools Open Source with Contributions Cross-Platform Fast © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

6 Main Features … that won’t be covered today
5/11/ :15 AM Main Features … that won’t be covered today WebAPI MVC Razor Helper Tags (awesome!!) Visual Studio Code DevOps … the usual things © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

7 Areas covered today Cross Platform        Project Creation
5/11/2018 Areas covered today Project Creation New (old) Project System Composition Settings OWIN Docker Cross Platform © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

8 Project Creation Jordan Knight Microsoft Ignite 2016
5/11/ :15 AM Project Creation Jordan Knight © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

9 “dotnet new” Flexible Creation of Projects
5/11/ :15 AM “dotnet new” Flexible Creation of Projects Console Apps Class Libraries Unit test projects ASP.NET Core Web, MVC, WebApi Solution Files © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

10 Composition Jordan Knight Microsoft Ignite 2016 5/11/2018 12:15 AM
© 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

11 Composition ASP.NET Core apps are composed
5/11/ :15 AM Composition ASP.NET Core apps are composed Start with nothing much Add references via Nuget Configure dependencies Configure the app © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

12 Light Weight ASP.NET Core can run super light
5/11/ :15 AM Light Weight ASP.NET Core can run super light We don’t always need a full featured web stack Can quickly add required features services.AddRouting(); Create light weight services that do specific tasks Terse, elegant © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

13 Settings Jordan Knight Microsoft Ignite 2016 5/11/2018 12:15 AM
© 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

14 Settings Strongly typed, JSON stored.
5/11/ :15 AM Settings Strongly typed, JSON stored. Main settings file is now appsettings.json Simple POCO settings classes Settings are configured in ConfigureServices services.Configure<ApiKeySettings>(Configuration.GetSection("ApiKeySettings")); Settings can be injected (more on this later) © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

15 OWIN and DI Jordan Knight Microsoft Ignite 2016 5/11/2018 12:15 AM
© 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

16 OWIN So you don’t need to care about the server
5/11/ :15 AM OWIN So you don’t need to care about the server Runs as a pipe, each element calls the next… … unless they decide not to Elements can return, modify the pipline The elements are called middleware You can use the plentiful pre-defined ones – or roll your own. … or both  app.UseJwtBearerAuthentication(new JwtBearerOptions { AutomaticAuthenticate = true, AutomaticChallenge = true, TokenValidationParameters = tokenValidationParameters }); © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

17 Dependency Injection ASP.NET Core is very DI friendly
5/11/ :15 AM Dependency Injection ASP.NET Core is very DI friendly Configure services in ConfigureServices () AddScoped, AddSingleton and AddTransient Watch your scopes You can inject framework services, or your own © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

18 Cross Platform Jordan Knight Microsoft Ignite 2016 5/11/2018 12:15 AM
© 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

19 Cross Platform ASP.NET Core runs on Linux, Mac, Windows
5/11/ :15 AM Cross Platform ASP.NET Core runs on Linux, Mac, Windows Also run’s on ARM based devices Kestrel hosts, use reverse proxy to expose © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

20 Containers Docker has excellent tooling support
5/11/ :15 AM Containers Docker has excellent tooling support Tooling in VS Can debug in to running containers Containers are actively maintained © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

21 Questions? @jakkaj jordan.knight@microsoft.com github.com/jakkaj
5/11/ :15 AM Questions? @jakkaj github.com/jakkaj © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

22 Continue your Ignite learning path
5/11/ :15 AM Continue your Ignite learning path Visit Channel 9 to access a wide range of Microsoft training and event recordings Head to the TechNet Eval Centre to download trials of the latest Microsoft products Visit Microsoft Virtual Academy for free online training visit © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

23 Win a Spark After Dark drone pilot pass by completing your session evaluation ASAP  #MSAUIGNITE

24 Thank you Chat with me in the Speaker Lounge
5/11/ :15 AM Thank you Chat with me in the Speaker Lounge © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.


Download ppt "Introduction to ASP.NET Core"

Similar presentations


Ads by Google