Skip to content

Commit 5bbf6b2

Browse files
committed
DisposeAsync implementation made private + style restructure
1 parent b6b3ddd commit 5bbf6b2

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/Components/Components/src/OwningComponentBase.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,6 @@ void IDisposable.Dispose()
5353
GC.SuppressFinalize(this);
5454
}
5555

56-
/// <summary>
57-
/// Asynchronously releases the service scope used by the component.
58-
/// </summary>
59-
/// <returns>A task that represents the asynchronous dispose operation.</returns>
60-
public async ValueTask DisposeAsync()
61-
{
62-
await DisposeAsyncCore().ConfigureAwait(false);
63-
64-
Dispose(disposing: false);
65-
GC.SuppressFinalize(this);
66-
}
67-
6856
/// <summary>
6957
/// Releases the service scope used by the component.
7058
/// </summary>
@@ -88,6 +76,18 @@ protected virtual void Dispose(bool disposing)
8876
}
8977
}
9078

79+
/// <summary>
80+
/// Asynchronously releases the service scope used by the component.
81+
/// </summary>
82+
/// <returns>A task that represents the asynchronous dispose operation.</returns>
83+
async ValueTask IAsyncDisposable.DisposeAsync()
84+
{
85+
await DisposeAsyncCore().ConfigureAwait(false);
86+
87+
Dispose(disposing: false);
88+
GC.SuppressFinalize(this);
89+
}
90+
9191
/// <summary>
9292
/// Asynchronously releases the service scope used by the component.
9393
/// </summary>

0 commit comments

Comments
 (0)