building a web api with asp.net core

13
Building a Web API with ASP.NET Core Tomasso Groenendijk https://www.linkedin.com/in/tomassogroenendij

Upload: biztalk360

Post on 08-Apr-2017

162 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Building a Web API with ASP.Net Core

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

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

Page 3: Building a Web API with ASP.Net Core

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

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

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

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

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

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

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

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

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

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

Questions?linkedin.com/in/tomassogroenendijk

twitter.com/tlagroenendijk

www.ithero.nl