Skip to content

Commit

Permalink
Add null check and remove binary breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
slang25 committed Jul 8, 2024
1 parent 09413c3 commit ab075b0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ public MessageDispatcher(
_logger = loggerFactory.CreateLogger("JustSaying");
}

public MessageDispatcher(
IMessageSerializationRegister serializationRegister,
IMessageMonitor messagingMonitor,
MiddlewareMap middlewareMap,
ILoggerFactory loggerFactory) : this(
serializationRegister,
messagingMonitor,
middlewareMap,
null,
loggerFactory)

Check warning on line 44 in src/JustSaying/AwsTools/MessageHandling/Dispatch/MessageDispatcher.cs

View check run for this annotation

Codecov / codecov/patch

src/JustSaying/AwsTools/MessageHandling/Dispatch/MessageDispatcher.cs#L39-L44

Added lines #L39 - L44 were not covered by tests
{
}

Check warning on line 46 in src/JustSaying/AwsTools/MessageHandling/Dispatch/MessageDispatcher.cs

View check run for this annotation

Codecov / codecov/patch

src/JustSaying/AwsTools/MessageHandling/Dispatch/MessageDispatcher.cs#L46

Added line #L46 was not covered by tests

public async Task DispatchMessageAsync(
IQueueMessageContext messageContext,
CancellationToken cancellationToken)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public sealed class MessageCompressionRegistry : IMessageCompressionRegistry
/// <param name="compressions">A list of available compression methods.</param>
public MessageCompressionRegistry(IList<IMessageBodyCompression> compressions)
{
_compressions = compressions;
_compressions = compressions ?? throw new ArgumentNullException(nameof(compressions));
}

/// <summary>
Expand Down

0 comments on commit ab075b0

Please sign in to comment.