Table of Contents

Class TestErrorCommand

Namespace
SEBT.Portal.UseCases.Diagnostics
Assembly
SEBT.Portal.UseCases.dll
public class TestErrorCommand : ICommand
Inheritance
object
TestErrorCommand
Implements

Properties

WithDelay

When true, the handler delays 30 seconds before throwing, simulating a slow dependency. The caller is expected to cancel via a short-lived CancellationTokenSource to exercise the timeout / OperationCanceledException path in OTEL tracing.

public bool WithDelay { get; init; }

Property Value

bool