Beispiel #1
0
 internal void fireRefsMaybeChanged()
 {
     if (_refDb.LastRefModification != _refDb.LastNotifiedRefModification)
     {
         _refDb.LastNotifiedRefModification = _refDb.LastRefModification;
         var @event = new RefsChangedEventArgs(this);
         List <RepositoryListener> all;
         lock (listeners)
         {
             all = new List <RepositoryListener>(listeners);
         }
         lock (allListeners)
         {
             all.AddRange(allListeners);
         }
         foreach (RepositoryListener l in all)
         {
             l.refsChanged(@event);
         }
     }
 }
Beispiel #2
0
 internal void fireRefsMaybeChanged()
 {
     if (_refDb.LastRefModification != _refDb.LastNotifiedRefModification)
     {
         _refDb.LastNotifiedRefModification = _refDb.LastRefModification;
         var @event = new RefsChangedEventArgs(this);
         List<RepositoryListener> all;
         lock (listeners)
         {
             all = new List<RepositoryListener>(listeners);
         }
         lock (allListeners)
         {
             all.AddRange(allListeners);
         }
         foreach (RepositoryListener l in all)
         {
             l.refsChanged(@event);
         }
     }
 }
Beispiel #3
0
 internal void fireRefsChanged()
 {
     var @event = new RefsChangedEventArgs(this);
     List<RepositoryListener> all;
     lock (listeners)
     {
         all = new List<RepositoryListener>(listeners);
     }
     lock (allListeners)
     {
         all.AddRange(allListeners);
     }
     foreach (RepositoryListener l in all)
     {
         l.refsChanged(@event);
     }
 }