private static StatusUpdater GetUpdaterInternal(SenderShedullerEntities context) { string key = context.Connection.ConnectionString; lock (_syncLock) { if (!_updaters.ContainsKey(key)) { StatusUpdater upd = new StatusUpdater(context); _updaters.Add(key, upd); } return(_updaters[key]); } }
public StatusUpdater(SenderShedullerEntities context) { _context = context; }
public static StatusUpdater GetStatusUpdater(this SenderShedullerEntities context) { return(GetUpdaterInternal(context)); }