Building a Web API with ASP.Net Core
-
Upload
biztalk360 -
Category
Technology
-
view
163 -
download
0
Transcript of Building a Web API with ASP.Net Core
![Page 1: Building a Web API with ASP.Net Core](https://reader035.fdocuments.net/reader035/viewer/2022062316/58e8ccf81a28abb3398b4f65/html5/thumbnails/1.jpg)
Building a Web API with ASP.NET CoreTomasso Groenendijk
https://www.linkedin.com/in/tomassogroenendijk
![Page 2: Building a Web API with ASP.Net Core](https://reader035.fdocuments.net/reader035/viewer/2022062316/58e8ccf81a28abb3398b4f65/html5/thumbnails/2.jpg)
Building a Web API with ASP.NET Core• Tomasso Groenendijk
![Page 3: Building a Web API with ASP.Net Core](https://reader035.fdocuments.net/reader035/viewer/2022062316/58e8ccf81a28abb3398b4f65/html5/thumbnails/3.jpg)
Meet Tomasso Groenendijk
• Live in the Netherlands
• Senior Integration Consultant at Motion10
• Azure MVP
• Has over 15 years of experience in software development and software design
![Page 4: Building a Web API with ASP.Net Core](https://reader035.fdocuments.net/reader035/viewer/2022062316/58e8ccf81a28abb3398b4f65/html5/thumbnails/4.jpg)
Overview
• Introduction into ASP.NET Core• Demo: build a Web API in .NET Core• Demo: Difference between VS 2015 & VS
2017• Demo: ASP.NET Core performance• Questions
![Page 5: Building a Web API with ASP.Net Core](https://reader035.fdocuments.net/reader035/viewer/2022062316/58e8ccf81a28abb3398b4f65/html5/thumbnails/5.jpg)
ASP.NET Core (previously ASP.NET 5)
A new open-source and cross-platform framework for building
modern cloud-based Web applications using .NET
![Page 6: Building a Web API with ASP.Net Core](https://reader035.fdocuments.net/reader035/viewer/2022062316/58e8ccf81a28abb3398b4f65/html5/thumbnails/6.jpg)
ASP.NET Core and the Modern Web
Choose your Editors and Tools
Open Source with Contributions Cross-PlatformOSS
Seamless transition from on-premises to cloud
Faster Development CycleTotally Modular
Fast
![Page 7: Building a Web API with ASP.Net Core](https://reader035.fdocuments.net/reader035/viewer/2022062316/58e8ccf81a28abb3398b4f65/html5/thumbnails/7.jpg)
Getting Started with ASP.NET Core 1.0Go to http://dot.net Docs: https://docs.asp.netSamples and code: https://github.com/aspnet
![Page 8: Building a Web API with ASP.Net Core](https://reader035.fdocuments.net/reader035/viewer/2022062316/58e8ccf81a28abb3398b4f65/html5/thumbnails/8.jpg)
ASP.NET Core in a Nutshell
.NET Framework .NET Core Platform for .NET applications on Windows Cross-platform, modular libraries &
runtime optimized for server and cloud workloads
ASP.NET 4.6(System.Web)
MVC ASP.NET Core MVC
ASP.NET Core 1.0(Microsoft.AspNetCore)
Web API
WebForms
![Page 9: Building a Web API with ASP.Net Core](https://reader035.fdocuments.net/reader035/viewer/2022062316/58e8ccf81a28abb3398b4f65/html5/thumbnails/9.jpg)
ASP.NET Core features• Hosting
• Kestrel, Startup
• Middleware• Routing, authentication, static files, diagnostics,
error handling, session, CORS, localization, custom
• Dependency Injection• Configuration• Logging• Application frameworks
• MVC, Identity, SignalR (preview)
![Page 10: Building a Web API with ASP.Net Core](https://reader035.fdocuments.net/reader035/viewer/2022062316/58e8ccf81a28abb3398b4f65/html5/thumbnails/10.jpg)
Building a Web API with ASP.NET Core MVC and Visual Studio 2017
MVC app
Data access layer
ClientHTTP request
HTTP response
serializemodel
Read /write
controllerDemo• Dependency Injection• Multiple environments
![Page 11: Building a Web API with ASP.Net Core](https://reader035.fdocuments.net/reader035/viewer/2022062316/58e8ccf81a28abb3398b4f65/html5/thumbnails/11.jpg)
Differences between Visual Studio 2015 & 2017
What happened with project.json and xproj based solution?
Demo
![Page 12: Building a Web API with ASP.Net Core](https://reader035.fdocuments.net/reader035/viewer/2022062316/58e8ccf81a28abb3398b4f65/html5/thumbnails/12.jpg)
ASP.NET Core performance
DemoDocumentDBRequests ASP.NET Core
Web API
NuGet
DocumentDBRequests ASP.NET Core Web API
REST
DocumentDBRequests ASP.NET 4.6 Web API
NuGet NET46-APIPlan (S1)
Core-APIPlan (S1)
Core-APIPlan (S1)
![Page 13: Building a Web API with ASP.Net Core](https://reader035.fdocuments.net/reader035/viewer/2022062316/58e8ccf81a28abb3398b4f65/html5/thumbnails/13.jpg)
Questions?linkedin.com/in/tomassogroenendijk
twitter.com/tlagroenendijk
www.ithero.nl