-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
404 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 9 additions & 4 deletions
13
Source/Picton.Messaging.IntegrationTests/MyMessageHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
using Microsoft.Extensions.Logging; | ||
using Picton.Messaging.Messages; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace Picton.Messaging.IntegrationTests | ||
{ | ||
public class MyMessageHandler : IMessageHandler<MyMessage> | ||
{ | ||
private readonly ILogger _log; | ||
private readonly ILogger<MyMessageHandler> _log; | ||
|
||
public MyMessageHandler(ILogger log) | ||
public MyMessageHandler(ILogger<MyMessageHandler> log) | ||
{ | ||
_log = log; | ||
} | ||
public void Handle(MyMessage message) | ||
|
||
public Task HandleAsync(MyMessage message, CancellationToken cancellationToken) | ||
{ | ||
_log.LogInformation(message.MessageContent); | ||
_log?.LogInformation(message.MessageContent); | ||
|
||
return Task.CompletedTask; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
using Shouldly; | ||
using Shouldly; | ||
using System; | ||
using Xunit; | ||
|
||
|
Oops, something went wrong.