- File new Razor Pages project
- Open
Program.cs
and talk aboutWebHost.CreateDefaultBuilder
- Show configuration & logging
WebHostBuilder
APIs - Open
Startup.cs
- Show
IConfiguration
is now injected 'cos it's in DI - Show that all the configuration logger setup is gone 'cos it's defaulted by
WebHOst.CreateDefaultBuilder
- Add authentication for Twitter & Google
- Show that all the APIs are now available by default because of the new
Microsoft.AspNetCore.All
meta-package - Open the CSPROJ and show how simple it is with just the single package
- Talk about the new runtime store that ensures all the packages aren't deployed with the application
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Html; | |
using Microsoft.AspNetCore.Mvc.Rendering; | |
using Microsoft.AspNetCore.Mvc.ViewFeatures; | |
using Microsoft.AspNetCore.Razor.TagHelpers; | |
namespace SampleTagHelpers | |
{ | |
[HtmlTargetElement("component")] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project> | |
<PropertyGroup> | |
<!-- .NET Core daily build feeds, put this in your project's csproj or solution Directory.Build.props --> | |
<RestoreSources> | |
$(RestoreSources); | |
https://api.nuget.org/v3/index.json; | |
https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json; | |
https://dotnetfeed.blob.core.windows.net/dotnet-windowsdesktop/index.json; | |
https://dotnetfeed.blob.core.windows.net/aspnet-aspnetcore/index.json; | |
https://dotnetfeed.blob.core.windows.net/aspnet-aspnetcore-tooling/index.json; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Task; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.Extensions.DependencyInjection; | |
namespace HelloWorld | |
{ | |
public class Program |
- Still very early days so much of this could change
- Architecture diagram: Sockets vs. SignalR
- SignalR Core new features
- non-HTTP
- Binary support
- Endpoint API & formatters
- Custom protocols
- No-jQuery dependency (works in Web Workers & Node.JS now)
- Pure WebSocket client
- Get results from client invocations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Mvc; | |
using WebApplication21.Data; | |
using WebApplication21.Models; | |
namespace WebApplication21.Controllers | |
{ |
- Application Diagnositcs in .NET Core 3.1
- SignalR Deep Dive: Building Servers
- Hidden gems in .NET Core 3
- What you need to know about ASP.NET Core 2.2
- Why your ASP.NET Core Application won't scale
- Diagnosing issues in ASP.NET Core Applications
- Patterns for application development with ASP.NET Core
- Channel 9 interview, NDC Oslo 2017
- ASP.NET Core Kestrel: Adventures in building a fast web server 1. Damian Edwards, David Fowler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Startup | |
{ | |
public void Configure() | |
{ | |
// Raw HTTP->HTTPS redirect using MapWhen | |
app.MapWhen( | |
context => context.Request.Scheme == "http", | |
map => map.Run(context => | |
{ | |
// NOTE: Should also handle non-default HTTPS port if required |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"compilationOptions": { | |
"emitEntryPoint": true, | |
"preserveCompilationContext": true | |
}, | |
"runtimeOptions": { | |
"gcServer": true | |
}, | |
"publishOptions": { | |
"include": ["wwwroot", "Views"] |
What happens if you tell GitHub it's JSON
{
"hello": "world" // I want my comments!
}
Use jsonc
as the language instead