Skip to content

Commit

Permalink
Update examples to match the latest code.
Browse files Browse the repository at this point in the history
  • Loading branch information
velviagris committed Jan 10, 2024
1 parent cee6652 commit eefbc9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Example/Example.ConsumerQuickStart/ConsumeService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ public ConsumeService(IRabbitConsumer consumer, ILogger<RabbitSubscriber>? logge
{
}

// protected override bool HandleMessage(string message)
// {
// _logger?.LogInformation(message);
// return true;
// }
protected override bool HandleMessage(string message)
{
Console.WriteLine(message);
return true;
}
}
4 changes: 2 additions & 2 deletions Example/Example.ReadSettings/ConsumeService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ namespace Example.ReadSettings;
public class ConsumeService : RabbitSubscriber
{
private readonly ILogger<RabbitSubscriber>? _logger;

public ConsumeService(IRabbitConsumer consumer, ILogger<RabbitSubscriber>? logger, string? consumerName = null) : base(consumer, consumerName, logger)
public ConsumeService(IRabbitConsumer consumer, string consumerName, ILogger<RabbitSubscriber>? logger = null) : base(consumer, consumerName, logger)
{
_logger = logger;
}
Expand Down

0 comments on commit eefbc9b

Please sign in to comment.