//----------------------------------------------------------------------- // // Copyright (c) aliasvault. All rights reserved. // Licensed under the AGPLv3 license. See LICENSE.md file in the project root for full license information. // //----------------------------------------------------------------------- namespace AliasVault.IntegrationTests.StatusHostedService; using Microsoft.Extensions.Hosting; /// /// A simple worker that throws an exception during task execution. This is used for testing purposes. /// public class TestExceptionWorker() : BackgroundService { /// protected override async Task ExecuteAsync(CancellationToken stoppingToken) { await Task.Delay(TimeSpan.FromMilliseconds(100), stoppingToken); throw new Exception("Test exception"); } }