Skip to content

Commit

Permalink
docs: Updated exception infos
Browse files Browse the repository at this point in the history
  • Loading branch information
samtrion committed Mar 28, 2024
1 parent 92ed3ad commit c1dc5b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace NetEvolve.Extensions.Hosting.WinForms;

using System;
using System.Threading.Tasks;
using System.Windows.Forms;
using Microsoft.Extensions.DependencyInjection;
Expand Down Expand Up @@ -50,6 +51,7 @@ T GetScopedForm<T>()
/// </summary>
/// <typeparam name="T">The specified forms.</typeparam>
/// <param name="scope">The scope.</param>
/// <exception cref="ArgumentNullException">Throws a <see cref="ArgumentNullException"/>, if <paramref name="scope"/> is <see langword="null"/>.</exception>
/// <returns>The requested form.</returns>
T GetScopedForm<T>(IServiceScope scope)
where T : Form;
Expand All @@ -67,6 +69,7 @@ ValueTask<T> GetScopedFormAsync<T>()
/// </summary>
/// <typeparam name="T">The specified forms.</typeparam>
/// <param name="scope">The scope.</param>
/// <exception cref="ArgumentNullException">Throws a <see cref="ArgumentNullException"/>, if <paramref name="scope"/> is <see langword="null"/>.</exception>
/// <returns>The requested form.</returns>
ValueTask<T> GetScopedFormAsync<T>(IServiceScope scope)
where T : Form;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public async ValueTask<T> GetScopedFormAsync<T>()
public async ValueTask<T> GetScopedFormAsync<T>(IServiceScope scope)
where T : Form
{
ArgumentNullException.ThrowIfNull(scope);
await _semaphore.WaitAsync().ConfigureAwait(false);
try
{
Expand Down

0 comments on commit c1dc5b1

Please sign in to comment.