Itad 2016 aspnet core.pptx
-
Upload
michal-michalczuk -
Category
Software
-
view
54 -
download
2
Transcript of Itad 2016 aspnet core.pptx
![Page 1: Itad 2016 aspnet core.pptx](https://reader036.fdocuments.pl/reader036/viewer/2022062503/5873b9461a28abbc788b508d/html5/thumbnails/1.jpg)
asp.net coreCzy warto się przesiadać?
Michał MichalczukFull-Stack Software Developer
![Page 2: Itad 2016 aspnet core.pptx](https://reader036.fdocuments.pl/reader036/viewer/2022062503/5873b9461a28abbc788b508d/html5/thumbnails/2.jpg)
1.Obecny stan asp.net core2.Gdzie i jak używać3.Uruchomienie aplikacji4.Konfiguracja5.IoCC6.Controllers7.Zależności8.Podsumowanie / Perspektywy
2
![Page 3: Itad 2016 aspnet core.pptx](https://reader036.fdocuments.pl/reader036/viewer/2022062503/5873b9461a28abbc788b508d/html5/thumbnails/3.jpg)
Punkt wyjścia
3
![Page 4: Itad 2016 aspnet core.pptx](https://reader036.fdocuments.pl/reader036/viewer/2022062503/5873b9461a28abbc788b508d/html5/thumbnails/4.jpg)
Punkt wyjścia
4
![Page 5: Itad 2016 aspnet core.pptx](https://reader036.fdocuments.pl/reader036/viewer/2022062503/5873b9461a28abbc788b508d/html5/thumbnails/5.jpg)
asp.net core - aktualny stan
5
• v. 1.1 - RTM jest od czerwca• nowy tooling CLI: dotnet• nowy webserver - Kestrel• napisany od 0
• wszystkie repozytoria https://github.com/aspnet
• rozwijany ściśle równolegle do .net core, EntityFramwork Core
![Page 6: Itad 2016 aspnet core.pptx](https://reader036.fdocuments.pl/reader036/viewer/2022062503/5873b9461a28abbc788b508d/html5/thumbnails/6.jpg)
• aha, ale to już było - ale nie w takiej skali
asp.net core - modularność
6
![Page 7: Itad 2016 aspnet core.pptx](https://reader036.fdocuments.pl/reader036/viewer/2022062503/5873b9461a28abbc788b508d/html5/thumbnails/7.jpg)
Uruchomienie na .net core lub .net framework
7
.net core .net framework
![Page 8: Itad 2016 aspnet core.pptx](https://reader036.fdocuments.pl/reader036/viewer/2022062503/5873b9461a28abbc788b508d/html5/thumbnails/8.jpg)
.net do niedawna
8
![Page 9: Itad 2016 aspnet core.pptx](https://reader036.fdocuments.pl/reader036/viewer/2022062503/5873b9461a28abbc788b508d/html5/thumbnails/9.jpg)
.net teraz
9
![Page 10: Itad 2016 aspnet core.pptx](https://reader036.fdocuments.pl/reader036/viewer/2022062503/5873b9461a28abbc788b508d/html5/thumbnails/10.jpg)
Szybkość działaniaName OS Role CPU RAM
perfsvr Windows Server 2012 R2
Web Server Xeon E5-1650 32 GB
perfsvr2 Ubuntu 14.04 LTS
Web Server & Load Generator
Xeon E5-1650 32 GB
10
https://github.com/aspnet/benchmarks
![Page 11: Itad 2016 aspnet core.pptx](https://reader036.fdocuments.pl/reader036/viewer/2022062503/5873b9461a28abbc788b508d/html5/thumbnails/11.jpg)
Plain text - “HelloWorld”
11
https://github.com/aspnet/benchmarks
ASP.NET Core on Kestrel
![Page 12: Itad 2016 aspnet core.pptx](https://reader036.fdocuments.pl/reader036/viewer/2022062503/5873b9461a28abbc788b508d/html5/thumbnails/12.jpg)
Plain text z HTTP Pipelingiem - 16 req
12
https://github.com/aspnet/benchmarks
![Page 13: Itad 2016 aspnet core.pptx](https://reader036.fdocuments.pl/reader036/viewer/2022062503/5873b9461a28abbc788b508d/html5/thumbnails/13.jpg)
• uruchomić aplikację• uruchomić testy• restore pakietów nuget• spięty z EF core• spięty z generatorem
Razor
> dotnet run | co potrafi nowe cli
13
![Page 14: Itad 2016 aspnet core.pptx](https://reader036.fdocuments.pl/reader036/viewer/2022062503/5873b9461a28abbc788b508d/html5/thumbnails/14.jpg)
Muszę teraz robić wszystko przez CLI !?
14
![Page 15: Itad 2016 aspnet core.pptx](https://reader036.fdocuments.pl/reader036/viewer/2022062503/5873b9461a28abbc788b508d/html5/thumbnails/15.jpg)
Show me the code
Don’t do live coding
![Page 16: Itad 2016 aspnet core.pptx](https://reader036.fdocuments.pl/reader036/viewer/2022062503/5873b9461a28abbc788b508d/html5/thumbnails/16.jpg)
• szybki• wygodna konfiguracja (appsettings,
oddzielne pliki, brak przekształceń)• multiplatformowy (tj działa pod .net
core)• wygodny tooling• abstrakcje ponad implementacje• wbudowany IoCC• lekki i modułowy, nie wymaga .net
framework na maszynie do uruchomienia
asp.net core - podsumowanie
16
![Page 17: Itad 2016 aspnet core.pptx](https://reader036.fdocuments.pl/reader036/viewer/2022062503/5873b9461a28abbc788b508d/html5/thumbnails/17.jpg)
• nie wszystkie biblioteki są kompatybilne• zamieszanie z wersjami frameworków• biblioteki i community
asp.net core - podsumowanie
17
![Page 18: Itad 2016 aspnet core.pptx](https://reader036.fdocuments.pl/reader036/viewer/2022062503/5873b9461a28abbc788b508d/html5/thumbnails/18.jpg)
asp.net core - czy warto?
18