diff --git a/samples/Balosar/Balosar.Server/Helpers/AsyncEnumerableExtensions.cs b/samples/Balosar/Balosar.Server/Helpers/AsyncEnumerableExtensions.cs deleted file mode 100644 index 43f53966..00000000 --- a/samples/Balosar/Balosar.Server/Helpers/AsyncEnumerableExtensions.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace Balosar.Server.Helpers; - -public static class AsyncEnumerableExtensions -{ - public static Task> ToListAsync(this IAsyncEnumerable source) - { - if (source == null) - { - throw new ArgumentNullException(nameof(source)); - } - - return ExecuteAsync(); - - async Task> ExecuteAsync() - { - var list = new List(); - - await foreach (var element in source) - { - list.Add(element); - } - - return list; - } - } -} diff --git a/samples/Dantooine/Dantooine.Server/Helpers/AsyncEnumerableExtensions.cs b/samples/Dantooine/Dantooine.Server/Helpers/AsyncEnumerableExtensions.cs deleted file mode 100644 index ce9e9571..00000000 --- a/samples/Dantooine/Dantooine.Server/Helpers/AsyncEnumerableExtensions.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace Dantooine.Server.Helpers; - -public static class AsyncEnumerableExtensions -{ - public static Task> ToListAsync(this IAsyncEnumerable source) - { - if (source == null) - { - throw new ArgumentNullException(nameof(source)); - } - - return ExecuteAsync(); - - async Task> ExecuteAsync() - { - var list = new List(); - - await foreach (var element in source) - { - list.Add(element); - } - - return list; - } - } -} diff --git a/samples/Matty/Matty.Server/Helpers/AsyncEnumerableExtensions.cs b/samples/Matty/Matty.Server/Helpers/AsyncEnumerableExtensions.cs deleted file mode 100644 index 89ab15a0..00000000 --- a/samples/Matty/Matty.Server/Helpers/AsyncEnumerableExtensions.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace Matty.Server.Helpers; - -public static class AsyncEnumerableExtensions -{ - public static Task> ToListAsync(this IAsyncEnumerable source) - { - if (source == null) - { - throw new ArgumentNullException(nameof(source)); - } - - return ExecuteAsync(); - - async Task> ExecuteAsync() - { - var list = new List(); - - await foreach (var element in source) - { - list.Add(element); - } - - return list; - } - } -} diff --git a/samples/Velusia/Velusia.Server/Helpers/AsyncEnumerableExtensions.cs b/samples/Velusia/Velusia.Server/Helpers/AsyncEnumerableExtensions.cs deleted file mode 100644 index 06af2069..00000000 --- a/samples/Velusia/Velusia.Server/Helpers/AsyncEnumerableExtensions.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace Velusia.Server.Helpers; - -public static class AsyncEnumerableExtensions -{ - public static Task> ToListAsync(this IAsyncEnumerable source) - { - if (source == null) - { - throw new ArgumentNullException(nameof(source)); - } - - return ExecuteAsync(); - - async Task> ExecuteAsync() - { - var list = new List(); - - await foreach (var element in source) - { - list.Add(element); - } - - return list; - } - } -}