- 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 - Damian Edwards, David Fowler
This file contains 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.Numerics; | |
using System.Text; | |
using System.Text.Json; | |
using System.Text.Unicode; | |
var json = """ | |
{ | |
"anInt": 123, | |
"negativeInt": -123, | |
"biggerInt": 1234567890, |
This file contains 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
function Get-ProgramFiles32() { | |
if (${env:ProgramFiles(x86)} -ne $null) { | |
return ${env:ProgramFiles(x86)} | |
} | |
return $env:ProgramFiles | |
} | |
function Get-VsInstallLocation() { | |
$programFiles = Get-ProgramFiles32 | |
$vswhere = "$programFiles\Microsoft Visual Studio\Installer\vswhere.exe" |
This file contains 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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"foreground": "#f1184c", | |
"properties": { | |
"template": " \uf0e7 " |
What happens if you tell GitHub it's JSON
{
"hello": "world" // I want my comments!
}
Just tell GitHub it's JavaScript
{
This file contains 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
** Value Objects ** | |
/user/123/posts?page=2&f=&q=test%20with%20spaces | |
/user/123/posts/?page=2&f=&q=test%20with%20spaces | |
user/123/posts?page=2 | |
user/123/entity%20with%20spaces?page=2 | |
/user/123?page=2 | |
/user/123/posts?page=2 | |
** Ordinal ** | |
/user/123/posts?page=2 |
This file contains 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.Buffers.Text; | |
using System.Text; | |
using System.Text.Json; | |
using System.Text.Json.Serialization; | |
using Microsoft.AspNetCore.Authentication; | |
using Microsoft.AspNetCore.Authentication.JwtBearer; | |
using Microsoft.AspNetCore.Authorization; | |
using Microsoft.Extensions.Options; | |
using Microsoft.OpenApi.Models; | |
using Swashbuckle.AspNetCore.SwaggerGen; |
IApplicationBuilder
Used to configure the application middleware pipelineMap() -> IApplicationBuilder
MapWhen() -> IApplicationBuilder
Run() -> void
Use() -> IApplicationBuilder
UseMiddleware() -> IApplicationBuilder
UsePathBase() -> IApplicationBuilder
UseRouting() -> IApplicationBuilder
UseRouter(Action<IRouteBuilder> action) -> IApplicationBuilder
UseEndpointPoints() -> IApplicationBuilder
This file contains 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
@page | |
@model IndexModel | |
@{ | |
ViewData["Title"] = "Home page"; | |
<div class="card"> | |
<div class="card-body"> | |
@await Model.GetInspirationalQuote() | |
</div> | |
<div class="card-footer"> |
This file contains 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.Buffers; | |
using System.Buffers.Text; | |
using System.Diagnostics; | |
using System.IO.Compression; | |
using System.Security.Cryptography; | |
using System.Text; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
BenchmarkRunner.Run<Benchmarks>(); |
NewerOlder