CmisSync.Lib.Queueing.SyncEventManager.AddEventHandler C# (CSharp) Méthode

AddEventHandler() public méthode

Adds the event handler to the manager.
public AddEventHandler ( SyncEventHandler handler ) : void
handler SyncEventHandler /// Handler to add. ///
Résultat void
        public void AddEventHandler(SyncEventHandler handler) {
            // The zero-based index of item in the sorted List<T>,
            // if item is found; otherwise, a negative number that
            // is the bitwise complement of the index of the next
            // element that is larger than item or.
            int pos = this.handler.BinarySearch(handler);
            if (pos < 0) {
                pos = ~pos;
            }

            this.handler.Insert(pos, handler);
        }