| Method | TestImage | Mean | Error | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|
| 'ImageSharp Bmp' | Bmp/Car.bmp | 86.65 us | 24.70 us | 1.354 us | 0.1221 | - | - | 2 KB |
| Method | TestImage | Mean | Error | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|
| **** sending Request1 to example.com **** | |
| Activity.TraceId: a204d84ced611be46da0dba9313ac4dc | |
| Activity.SpanId: d3ffeb48a6f38d34 | |
| Activity.TraceFlags: Recorded | |
| Activity.ParentSpanId: 11607beab559707f | |
| Activity.ActivitySourceName: System.Net.NameResolution | |
| Activity.DisplayName: System.Net.NameResolution.DsnLookup | |
| Activity.Kind: Client | |
| Activity.StartTime: 2024-06-24T21:43:21.5808535Z | |
| Activity.Duration: 00:00:00.0096843 |
| using BenchmarkDotNet.Attributes; | |
| using System.Collections.Frozen; | |
| [MemoryDiagnoser] | |
| public class StatusCodeBoxingBenchmarks | |
| { | |
| [Benchmark] | |
| public object Get1_FrozenDictionary() | |
| { | |
| return GetBoxedStatusCode_FrozenDictionary(200); |
| #define METRICS | |
| using System.Diagnostics.Metrics; | |
| using BenchmarkDotNet.Attributes; | |
| using System.Text; | |
| using System.Diagnostics; | |
| using System.Threading.Tasks.Sources; | |
| using System.Net; | |
| #if METRICS |
This proposal builds on the decisions made in our QUIC Exceptions Design proposal.
ProtocolException, and embed it as HttpRequestException.InnerExceptionProtocolException directly from HttpResponse content read streamsQuicException as ProtocolException.InnerException| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <OutputType>Exe</OutputType> | |
| <TargetFrameworks>net6.0;net5.0;netcoreapp3.1</TargetFrameworks> | |
| </PropertyGroup> | |
| </Project> |
| public class _ExhaustTest : IDisposable | |
| { | |
| public const int ListenerCount = 1000; | |
| public const int ConnectCount = 1024 * 20; | |
| //public const int ConnectCount = 10; | |
| private readonly ITestOutputHelper _output; | |
| private Task[] _listenTasks = new Task[ListenerCount]; | |
| private Socket[] _listeners = new Socket[ListenerCount]; |
| 2021-03-18T15:01:04.4504783Z client_1 | System.Net.Http.HttpRequestException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (server:5001) | |
| 2021-03-18T15:01:04.4506315Z | |
| 2021-03-18T15:01:04.4508672Z client_1 | ---> System.Net.Sockets.SocketException (10060): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. | |
| 2021-03-18T15:01:04.4509920Z | |
| 2021-03-18T15:01:04.4511533Z client_1 | at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) in /_/src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.Tasks.cs:line 1233 | |
| 2021-03-18T15:01:04.4512995Z | |
| 2021-03-18T15:01:04.4514290Z client_1 | at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading. |
| public static void TransformImage(ImageEditModel imageEdit, MemoryStream destinationStream) | |
| { | |
| if (destinationStream == null) | |
| { | |
| throw new ArgumentNullException(nameof(destinationStream)); | |
| } | |
| var sourceImage = Image.Load(imageEdit.SourceStream); | |
| var blur = imageEdit.History.Where(h => h.Tool == ImageTool.Blur).FirstOrDefault(); |
| using SixLabors.Fonts; | |
| using SixLabors.ImageSharp; | |
| using SixLabors.ImageSharp.Processing; | |
| using SixLabors.ImageSharp.Drawing.Processing; | |
| using System; | |
| using SixLabors.ImageSharp.PixelFormats; | |
| namespace ColonTest | |
| { | |
| class Program |