Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(LiquidBackgroundService.cs): propagates cancelation token. #261

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading