Skip to content

Commit

Permalink
dotnet format
Browse files Browse the repository at this point in the history
  • Loading branch information
mtmk committed Jan 23, 2024
1 parent 4220250 commit ca43870
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/NATS.Client.Core/AsyncEventHandler.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NATS.Client.Core;
namespace NATS.Client.Core;

/// <summary>
/// An asynchronous event handler.
Expand Down
24 changes: 12 additions & 12 deletions src/NATS.Client.Core/NatsConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -624,18 +624,18 @@ private async Task PublishEventsAsync()
var (natsEvent, args) = eventArgs;
switch (natsEvent)
{
case NatsEvent.ConnectionOpened when ConnectionOpened != null:
await ConnectionOpened.InvokeAsync(this, args).ConfigureAwait(false);
break;
case NatsEvent.ConnectionDisconnected when ConnectionDisconnected != null:
await ConnectionDisconnected.InvokeAsync(this, args).ConfigureAwait(false);
break;
case NatsEvent.ReconnectFailed when ReconnectFailed != null:
await ReconnectFailed.InvokeAsync(this, args).ConfigureAwait(false);
break;
case NatsEvent.MessageDropped when MessageDropped != null && args is NatsMessageDroppedEventArgs error:
await MessageDropped.InvokeAsync(this, error).ConfigureAwait(false);
break;
case NatsEvent.ConnectionOpened when ConnectionOpened != null:
await ConnectionOpened.InvokeAsync(this, args).ConfigureAwait(false);
break;
case NatsEvent.ConnectionDisconnected when ConnectionDisconnected != null:
await ConnectionDisconnected.InvokeAsync(this, args).ConfigureAwait(false);
break;
case NatsEvent.ReconnectFailed when ReconnectFailed != null:
await ReconnectFailed.InvokeAsync(this, args).ConfigureAwait(false);
break;
case NatsEvent.MessageDropped when MessageDropped != null && args is NatsMessageDroppedEventArgs error:
await MessageDropped.InvokeAsync(this, error).ConfigureAwait(false);
break;
}
}
}
Expand Down

0 comments on commit ca43870

Please sign in to comment.