@@ -25,7 +25,7 @@ public abstract class Worker<T>(
25
25
{
26
26
private readonly ILogger < Worker < T > > _logger = loggerFactory . CreateLogger < Worker < T > > ( ) ;
27
27
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 ) ;
29
29
private static void Notify ( ILogger logger , LogLevel level , string template , params object [ ] parameters )
30
30
{
31
31
static Action < ILogger , string , object [ ] > LoggerAction ( LogLevel ll , bool enabled ) =>
@@ -35,7 +35,7 @@ static Action<ILogger, string, object[]> LoggerAction(LogLevel ll, bool enabled)
35
35
( LogLevel . Debug , true ) => ( logger , template , parameters ) => logger . LogDebug ( template , parameters ) ,
36
36
( _, _) => ( _ , __ , ___ ) => { }
37
37
} ;
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 ) ;
39
39
}
40
40
41
41
protected override async Task ExecuteAsync ( CancellationToken stoppingToken )
0 commit comments