Skip to content

Commit 98e0ea0

Browse files
committed
Change namespaces for all projects to single pattern;
1 parent 32ac90c commit 98e0ea0

File tree

14 files changed

+43
-40
lines changed

14 files changed

+43
-40
lines changed

ZeroCode.Async.Events/AsyncEvent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.Threading;
44
using System.Threading.Tasks;
55

6-
namespace ZeroCode.Async.Events
6+
namespace ZeroCode.Async
77
{
88
/// <summary>
99
/// Internal methods for invoking async delegates like event
@@ -16,7 +16,7 @@ internal static class AsyncEvent
1616
/// <param name="event">Event handler that will be invoked</param>
1717
/// <param name="mode">Invocation mode of <paramref name="event" /></param>
1818
/// <param name="sender">Object, event invoked from</param>
19-
/// <param name="eventArgs">Event arguments that must be sended to delegates</param>
19+
/// <param name="eventArgs">Event arguments that must be sent to delegates</param>
2020
/// <param name="token"></param>
2121
/// <returns></returns>
2222
/// <exception cref="ArgumentOutOfRangeException"></exception>

ZeroCode.Async.Events/AsyncEventDelegates.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Threading;
33
using System.Threading.Tasks;
44

5-
namespace ZeroCode.Async.Events
5+
namespace ZeroCode.Async
66
{
77
/// <summary>
88
/// Async event handler delegate
@@ -18,7 +18,7 @@ public delegate Task AsyncEventHandler(
1818
);
1919

2020
/// <summary>
21-
/// Async event handler delegate with specifing sending event args type
21+
/// Async event handler delegate with specifying sending event args type
2222
/// </summary>
2323
/// <typeparam name="TEventArgs"></typeparam>
2424
/// <param name="sender"></param>
@@ -32,7 +32,7 @@ public delegate Task AsyncEventHandler<in TEventArgs>(
3232
);
3333

3434
/// <summary>
35-
/// Async event handler delegate with specifing sender and sending event args types
35+
/// Async event handler delegate with specifying sender and sending event args types
3636
/// </summary>
3737
/// <typeparam name="TEventSender"></typeparam>
3838
/// <typeparam name="TEventArgs"></typeparam>

ZeroCode.Async.Events/AsyncEventExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace ZeroCode.Async.Events
3+
namespace ZeroCode.Async
44
{
55
/// <summary>
66
/// Extensions that makes async event invocation possible

ZeroCode.Async.Events/AsyncEventInvocationMode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace ZeroCode.Async.Events
1+
namespace ZeroCode.Async
22
{
33
/// <summary>
44
/// Invocation mods of async events

ZeroCode.Async.Events/AsyncEventInvoker.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Threading;
33
using System.Threading.Tasks;
44

5-
namespace ZeroCode.Async.Events
5+
namespace ZeroCode.Async
66
{
77
/// <summary>
88
/// Invoker for <see cref="AsyncEventHandler" /> delegate
@@ -29,7 +29,7 @@ public Task Simultaneously(object? sender, EventArgs? args, CancellationToken to
2929
}
3030

3131
/// <inheritdoc />
32-
public Task TrueAsyncronosly(object? sender, EventArgs? args, CancellationToken token)
32+
public Task TrueAsynchronously(object? sender, EventArgs? args, CancellationToken token)
3333
{
3434
return AsyncEvent.InvokeAsyncInternal(_event, AsyncEventInvocationMode.TrueAsync, sender, args, token);
3535
}
@@ -60,7 +60,7 @@ public Task Simultaneously(object? sender, TEventArgs args, CancellationToken to
6060
}
6161

6262
/// <inheritdoc />
63-
public Task TrueAsyncronosly(object? sender, TEventArgs args, CancellationToken token)
63+
public Task TrueAsynchronously(object? sender, TEventArgs args, CancellationToken token)
6464
{
6565
return AsyncEvent.InvokeAsyncInternal(_event, AsyncEventInvocationMode.TrueAsync, sender, args, token);
6666
}
@@ -91,7 +91,7 @@ public Task Simultaneously(TEventSender sender, TEventArgs args, CancellationTok
9191
}
9292

9393
/// <inheritdoc />
94-
public Task TrueAsyncronosly(TEventSender sender, TEventArgs args, CancellationToken token)
94+
public Task TrueAsynchronously(TEventSender sender, TEventArgs args, CancellationToken token)
9595
{
9696
return AsyncEvent.InvokeAsyncInternal(_event, AsyncEventInvocationMode.TrueAsync, sender, args, token);
9797
}

ZeroCode.Async.Events/IAsyncEventInvoker.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Threading;
22
using System.Threading.Tasks;
33

4-
namespace ZeroCode.Async.Events
4+
namespace ZeroCode.Async
55
{
66
/// <summary>
77
/// Interface for all async event invokers
@@ -20,7 +20,7 @@ public interface IAsyncEventInvoker<in TEventSender, in TEventArgs>
2020
Task Consequently(TEventSender sender, TEventArgs args, CancellationToken token);
2121

2222
/// <summary>
23-
/// Invoke event simultaneously, run all delegates in didicated tasks and then await its completition
23+
/// Invoke event simultaneously, run all delegates in dedicated tasks and then await its competition
2424
/// </summary>
2525
/// <param name="sender"></param>
2626
/// <param name="args"></param>
@@ -29,13 +29,13 @@ public interface IAsyncEventInvoker<in TEventSender, in TEventArgs>
2929
Task Simultaneously(TEventSender sender, TEventArgs args, CancellationToken token);
3030

3131
/// <summary>
32-
/// Invoke event as true asyncronosly work in .NET. Invoke delegate until it return async context, after that invoke
33-
/// next, in the end await completition of all tasks.
32+
/// Invoke event as true asynchronously work in .NET. Invoke delegate until it return async context, after that invoke
33+
/// next, in the end await competition of all tasks.
3434
/// </summary>
3535
/// <param name="sender"></param>
3636
/// <param name="args"></param>
3737
/// <param name="token"></param>
3838
/// <returns></returns>
39-
Task TrueAsyncronosly(TEventSender sender, TEventArgs args, CancellationToken token);
39+
Task TrueAsynchronously(TEventSender sender, TEventArgs args, CancellationToken token);
4040
}
4141
}

ZeroCode.Database.SqlServer/Batch.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
using System.Threading;
66
using System.Threading.Tasks;
77
using Microsoft.Data.SqlClient;
8+
using ZeroCode.Internal;
89

9-
namespace ZeroCode.Database.SqlServer
10+
namespace ZeroCode.Database
1011
{
1112
public static partial class Request
1213
{
@@ -53,7 +54,7 @@ internal static async Task ExecuteNonQueryAsyncInternal(
5354
}
5455

5556
/// <summary>
56-
/// Execute multiple query requests with outputed tabled values
57+
/// Execute multiple query requests with outputted tabled values
5758
/// </summary>
5859
/// <param name="requests"></param>
5960
/// <param name="connectionString"></param>

ZeroCode.Database.SqlServer/ExceptionsHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace ZeroCode.Database.SqlServer
1+
namespace ZeroCode.Internal
22
{
33
/// <summary>
44
/// Some helper utils for throwing exceptions

ZeroCode.Database.SqlServer/Models/RequestBody.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Data;
33

44
// ReSharper disable once CheckNamespace
5-
namespace ZeroCode.Database.SqlServer
5+
namespace ZeroCode.Database
66
{
77
/// <summary>
88
/// Database query request body for using in <see cref="Request" /> methods

ZeroCode.Database.SqlServer/Request.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@
55
using System.Threading;
66
using System.Threading.Tasks;
77
using Microsoft.Data.SqlClient;
8+
using ZeroCode.Internal;
89

9-
namespace ZeroCode.Database.SqlServer
10+
namespace ZeroCode.Database
1011
{
1112
/// <summary>
12-
/// Utility funtions for executing query in database
13+
/// Utility functions for executing query in database
1314
/// </summary>
1415
public static partial class Request
1516
{
1617
/// <summary>
17-
/// Connection string to database that uses when nor connection string nor openned connection sent with query
18+
/// Connection string to database that uses when nor connection string nor opened connection sent with query
1819
/// </summary>
1920
private static string? _globalConnectionString;
2021

@@ -92,7 +93,7 @@ internal static async Task ExecuteNonQueryAsyncInternal(
9293
/// <param name="connectionString"></param>
9394
/// <param name="connection">An existing connection that can be used for executing query</param>
9495
/// <param name="token"></param>
95-
/// <returns>Task with an array of an arrays (rows of table) of dictionry (column of a row)</returns>
96+
/// <returns>Task with an array of an arrays (rows of table) of dictionary (column of a row)</returns>
9697
/// <exception cref="InvalidOperationException"></exception>
9798
internal static async Task<Dictionary<string, object?>[][]> ExecuteAsyncInternal(
9899
RequestBody queryBody,

0 commit comments

Comments
 (0)