BenchmarkDotNet=v0.13.1, OS=Windows 10.0.22530
Unknown processor
.NET SDK=6.0.202
[Host] : .NET 5.0.16 (5.0.1622.16705), X64 RyuJIT
DefaultJob : .NET 5.0.16 (5.0.1622.16705), X64 RyuJIT
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
public class ExceptionHandlingMiddleware : IFunctionsWorkerMiddleware | |
{ | |
private readonly ILogger<ExceptionHandlingMiddleware> _logger; | |
public ExceptionHandlingMiddleware(ILogger<ExceptionHandlingMiddleware> logger) | |
{ | |
_logger = logger ?? throw new ArgumentNullException(nameof(logger)); | |
} | |
public async Task Invoke(FunctionContext context, FunctionExecutionDelegate next) |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
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
IEnumerable<string> first = new[] {"one", "two", "three","four","five","six","seven","eight"}; | |
IEnumerable<string> second = new[] { "two", "three"}; | |
var matchFound = first.Intersect(second, StringComparer.OrdinalIgnoreCase).Any(); |
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
public sealed class Person | |
{ | |
public string FullName { get; set; } | |
[JsonConverter(typeof(VehiclesArrayConverter))] | |
public List<Vehicle>? Vehicles { get; set; } | |
public string[] Aliases { get; set; } | |
} |
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 Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Hosting; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; |
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 BenchmarkDotNet.Attributes; | |
using System; | |
using System.Collections.Generic; | |
namespace Benchmark_ToListCall | |
{ | |
[MemoryDiagnoser] | |
public class StringBenchmarks2 | |
{ | |
private string stringToSlice; |
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 BenchmarkDotNet.Attributes; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Benchmark_ToListCall | |
{ | |
[MemoryDiagnoser] | |
public class DictionaryBenchmarks | |
{ |
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
Result | |
``` ini | |
BenchmarkDotNet=v0.12.1, OS=Windows 10.0.19042 | |
Intel Xeon CPU E5-1650 v4 3.60GHz, 1 CPU, 12 logical and 6 physical cores | |
.NET Core SDK=5.0.100-rc.2.20479.15 | |
[Host] : .NET Core 3.1.9 (CoreCLR 4.700.20.47201, CoreFX 4.700.20.47203), X64 RyuJIT | |
DefaultJob : .NET Core 3.1.9 (CoreCLR 4.700.20.47201, CoreFX 4.700.20.47203), X64 RyuJIT |
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
Run D:\Windows\System32\inetsrv> appcmd list wps | |
Get the Id for the app pool for the app |