Building a Web API with ASP.Net Core

Preview:

Citation preview

Building a Web API with ASP.NET CoreTomasso Groenendijk

https://www.linkedin.com/in/tomassogroenendijk

Building a Web API with ASP.NET Core• Tomasso Groenendijk

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

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

ASP.NET Core (previously ASP.NET 5)

A new open-source and cross-platform framework for building

modern cloud-based Web applications using .NET

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

Getting Started with ASP.NET Core 1.0Go to http://dot.net Docs: https://docs.asp.netSamples and code: https://github.com/aspnet

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

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)

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

Differences between Visual Studio 2015 & 2017

What happened with project.json and xproj based solution?

Demo

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)

Questions?linkedin.com/in/tomassogroenendijk

twitter.com/tlagroenendijk

www.ithero.nl

Recommended