@@ -25,7 +25,7 @@ public abstract class Worker<T>(
2525{
2626 private readonly ILogger < Worker < T > > _logger = loggerFactory . CreateLogger < Worker < T > > ( ) ;
2727 private string WorkerName { get ; } = $ "{ nameof ( Worker < T > ) } <{ typeof ( T ) . Name } >";
28- private static readonly ConcurrentDictionary < string , Action < ILogger , string , object [ ] > > _actions = new ( StringComparer . OrdinalIgnoreCase ) ;
28+ private static readonly ConcurrentDictionary < string , Action < ILogger , string , object [ ] > > LoggingActions = new ( StringComparer . OrdinalIgnoreCase ) ;
2929 private static void Notify ( ILogger logger , LogLevel level , string template , params object [ ] parameters )
3030 {
3131 static Action < ILogger , string , object [ ] > LoggerAction ( LogLevel ll , bool enabled ) =>
@@ -35,7 +35,7 @@ static Action<ILogger, string, object[]> LoggerAction(LogLevel ll, bool enabled)
3535 ( LogLevel . Debug , true ) => ( logger , template , parameters ) => logger . LogDebug ( template , parameters ) ,
3636 ( _, _) => ( _ , __ , ___ ) => { }
3737 } ;
38- _actions . GetOrAdd ( template , s => LoggerAction ( level , logger . IsEnabled ( level ) ) ) ( logger , template , parameters ) ;
38+ LoggingActions . GetOrAdd ( template , s => LoggerAction ( level , logger . IsEnabled ( level ) ) ) ( logger , template , parameters ) ;
3939 }
4040
4141 protected override async Task ExecuteAsync ( CancellationToken stoppingToken )
0 commit comments