File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ public async Task WriteAsync(Stream stream)
199
199
{
200
200
Dictionary < string , string > dictionary = this . ToDictionary ( ) ;
201
201
202
- using StreamWriter writer = new ( stream , Encoding . UTF8 ) ;
202
+ await using StreamWriter writer = new ( stream , Encoding . UTF8 ) ;
203
203
foreach ( KeyValuePair < string , string > keyValuePair in dictionary )
204
204
{
205
205
// TODO: string.Create
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk" >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
4
<AssemblyTitle >SixLabors.ImageSharp.Web</AssemblyTitle >
46
46
<ItemGroup >
47
47
<FrameworkReference Include =" Microsoft.AspNetCore.App" />
48
48
<PackageReference Include =" Microsoft.IO.RecyclableMemoryStream" Version =" 3.0.1" />
49
- <PackageReference Include =" SixLabors.ImageSharp" Version =" 3.1.7 " />
49
+ <PackageReference Include =" SixLabors.ImageSharp" Version =" 3.1.8 " />
50
50
</ItemGroup >
51
51
52
52
<Import Project =" ..\..\shared-infrastructure\src\SharedInfrastructure\SharedInfrastructure.projitems" Label =" Shared" />
Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ private async Task ProcessRequestAsync(
342
342
maxAge = sourceImageMetadata . CacheControlMaxAge ;
343
343
}
344
344
345
- using ( Stream inStream = await sourceImageResolver . OpenReadAsync ( ) )
345
+ await using ( Stream inStream = await sourceImageResolver . OpenReadAsync ( ) )
346
346
{
347
347
// TODO: Do we need some way to set options based upon processors?
348
348
DecoderOptions decoderOptions = await this . options . OnBeforeLoadAsync . Invoke ( imageCommandContext , this . options . Configuration )
@@ -524,7 +524,7 @@ private async Task SendResponseAsync(
524
524
{
525
525
Guard . NotNull ( cacheResolver ) ;
526
526
527
- using Stream cacheStream = await cacheResolver . OpenReadAsync ( ) ;
527
+ await using Stream cacheStream = await cacheResolver . OpenReadAsync ( ) ;
528
528
await imageContext . SendAsync ( cacheStream , metadata ) ;
529
529
}
530
530
catch ( Exception ex )
You can’t perform that action at this time.
0 commit comments