Esempio n. 1
0
        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]);
            }
        }
Esempio n. 2
0
 public StatusUpdater(SenderShedullerEntities context)
 {
     _context = context;
 }
Esempio n. 3
0
 public static StatusUpdater GetStatusUpdater(this SenderShedullerEntities context)
 {
     return(GetUpdaterInternal(context));
 }