diff --git a/src/core/Wemogy.CQRS/DependencyInjection.cs b/src/core/Wemogy.CQRS/DependencyInjection.cs index c11dfdd..a758cac 100644 --- a/src/core/Wemogy.CQRS/DependencyInjection.cs +++ b/src/core/Wemogy.CQRS/DependencyInjection.cs @@ -333,6 +333,6 @@ public static IHealthChecksBuilder AddDelayedProcessorCheck(this IHeal where TCommand : ICommandBase { return healthChecksBuilder.AddCheck>( - $"{nameof(TCommand)}DelayedProcessorHealthCheck"); + $"{typeof(TCommand).Name}DelayedProcessorHealthCheck"); } }