Skip to content

Commit 978a676

Browse files
Inline doorman methods
1 parent 620f818 commit 978a676

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/ImageSharp.Web/Caching/Doorman.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
using System;
55
using System.Collections.Generic;
6+
using System.Runtime.CompilerServices;
67
using System.Threading.Tasks;
78

89
namespace SixLabors.ImageSharp.Web.Caching
@@ -88,6 +89,7 @@ public Task<Releaser> WriterLockAsync()
8889
}
8990
}
9091

92+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
9193
private void ReaderRelease()
9294
{
9395
TaskCompletionSource<Releaser> toWake = null;
@@ -111,6 +113,7 @@ private void ReaderRelease()
111113
toWake?.SetResult(new Releaser(this, true));
112114
}
113115

116+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
114117
private void WriterRelease()
115118
{
116119
TaskCompletionSource<Releaser> toWake = null;
@@ -168,4 +171,4 @@ public void Dispose()
168171
}
169172
}
170173
}
171-
}
174+
}

src/ImageSharp.Web/Caching/PhysicalFileSystemCacheResolver.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Six Labors.
22
// Licensed under the Apache License, Version 2.0.
33

4-
using System;
54
using System.IO;
65
using System.Threading.Tasks;
76
using Microsoft.Extensions.FileProviders;

0 commit comments

Comments
 (0)