Skip to content

Commit

Permalink
Merge pull request #261 from Avanade/feat/newcartridges
Browse files Browse the repository at this point in the history
fix(LiquidBackgroundService.cs): propagates cancelation token.
  • Loading branch information
lucianareginalino authored Jul 29, 2024
2 parents bb62cac + 3960a64 commit 9f14f84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Liquid.Core/Implementations/LiquidBackgroundService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public LiquidBackgroundService(IServiceProvider serviceProvider, ILiquidConsumer
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{
_consumer.ConsumeMessageAsync += ProcessMessageAsync;
_consumer.RegisterMessageHandler();
_consumer.RegisterMessageHandler(stoppingToken);

await Task.CompletedTask;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Liquid.Core/Interfaces/ILiquidConsumer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public interface ILiquidConsumer<TEntity>
/// <summary>
/// Initialize handler for consume <typeparamref name="TEntity"/> messages from topic or queue.
/// </summary>
void RegisterMessageHandler();
void RegisterMessageHandler(CancellationToken cancellationToken = default);

/// <summary>
/// Defining the message processing function.
Expand Down
2 changes: 1 addition & 1 deletion src/Liquid.Core/Liquid.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Copyright>Avanade 2019</Copyright>
<PackageProjectUrl>https://github.com/Avanade/Liquid-Application-Framework</PackageProjectUrl>
<PackageIcon>logo.png</PackageIcon>
<Version>8.0.0-beta-07</Version>
<Version>8.0.0-beta-08</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<ProjectGuid>{C33A89FC-4F4D-4274-8D0F-29456BA8F76B}</ProjectGuid>
<IsPackable>true</IsPackable>
Expand Down

0 comments on commit 9f14f84

Please sign in to comment.