Exemplo n.º 1
0
 public RedisOperationLogChangeTracker(
     RedisOperationLogChangeTrackingOptions <TDbContext> options,
     AgentInfo agentInfo,
     IServiceProvider services)
     : base(services)
 {
     Options   = options;
     AgentInfo = agentInfo;
     RedisDb   = Services.GetService <RedisDb <TDbContext> >() ?? Services.GetRequiredService <RedisDb>();
     RedisSub  = RedisDb.GetChannelSub(options.PubSubKey);
     Log.LogInformation("Using pub/sub key = '{Key}'", RedisSub.FullKey);
     // ReSharper disable once VirtualMemberCallInConstructor
     ReplaceNextEventTask();
 }