Exemplo n.º 1
0
 public RedisOperationLogChangeNotifier(
     RedisOperationLogChangeTrackingOptions <TDbContext> options,
     AgentInfo agentInfo,
     IServiceProvider services)
     : base(services)
 {
     Options   = options;
     AgentInfo = agentInfo;
     RedisDb   = Services.GetService <RedisDb <TDbContext> >() ?? Services.GetRequiredService <RedisDb>();
     RedisPub  = RedisDb.GetPub(options.PubSubKey);
     Log.LogInformation("Using pub/sub key = '{Key}'", RedisPub.FullKey);
 }