Exemplo n.º 1
0
 public NotifyService(DbWorker db, IServiceProvider serviceProvider, ICacheNotify <NotifyMessage> cacheNotify, IOptionsMonitor <ILog> options)
 {
     this.db          = db;
     ServiceProvider  = serviceProvider;
     this.cacheNotify = cacheNotify;
     log = options.CurrentValue;
 }
Exemplo n.º 2
0
 public NotifyService(DbWorker db, IServiceProvider serviceProvider, ICacheNotify <NotifyMessage> cacheNotify, ICacheNotify <NotifyInvoke> cacheInvoke, IOptionsMonitor <ILog> options)
 {
     Db = db;
     ServiceProvider = serviceProvider;
     CacheNotify     = cacheNotify;
     CacheInvoke     = cacheInvoke;
     Log             = options.CurrentValue;
 }
Exemplo n.º 3
0
 public NotifySender(IOptions <NotifyServiceCfg> notifyServiceCfg, DbWorker dbWorker, IOptionsMonitor <ILog> options)
 {
     log = options.CurrentValue;
     NotifyServiceCfg = notifyServiceCfg.Value;
     db = dbWorker;
 }
 public NotifyService(DbWorker db)
 {
     this.db     = db;
     cacheNotify = new KafkaCache <NotifyMessage>();
 }
 public NotifySender(NotifyServiceCfg notifyServiceCfg, DbWorker dbWorker)
 {
     NotifyServiceCfg = notifyServiceCfg;
     db = dbWorker;
 }