예제 #1
0
 void System.Collections.IList.Remove(object value)
 {
     lock (SyncRoot)
     {
         ((System.Collections.IList)_innerList).Remove(value);
     }
     DiscoveryBeacon.RefreshServices();
 }
예제 #2
0
 public void Clear()
 {
     lock (SyncRoot)
     {
         _innerList.Clear();
         DiscoveryBeacon.RefreshServices();
     }
 }
예제 #3
0
 public void RemoveAt(int index)
 {
     lock (SyncRoot)
     {
         _innerList.RemoveAt(index);
         DiscoveryBeacon.RefreshServices();
     }
 }
예제 #4
0
 void System.Collections.IList.Insert(int index, object value)
 {
     ThrowIfWrongType(value);
     lock (SyncRoot)
     {
         ((System.Collections.IList)_innerList).Insert(index, value);
     }
     DiscoveryBeacon.RefreshServices();
 }
예제 #5
0
 public bool Remove(TivoConnectService item)
 {
     lock (SyncRoot)
     {
         bool remove = _innerList.Remove(item);
         DiscoveryBeacon.RefreshServices();
         return(remove);
     }
 }
예제 #6
0
        int System.Collections.IList.Add(object value)
        {
            int add;

            ThrowIfWrongType(value);
            lock (SyncRoot)
            {
                add = ((System.Collections.IList)_innerList).Add(value);
            }
            DiscoveryBeacon.RefreshServices();
            return(add);
        }
예제 #7
0
 public void Add(TivoConnectService item)
 {
     lock (SyncRoot)
     {
         if (item.Name == null)
         {
             // name must not be null
             throw new ArgumentException();
         }
         _innerList.Add(item);
         DiscoveryBeacon.RefreshServices();
     }
 }
예제 #8
0
 object System.Collections.IList.this[int index]
 {
     get
     {
         lock (SyncRoot)
         {
             return(((System.Collections.IList)_innerList)[index]);
         }
     }
     set
     {
         ThrowIfWrongType(value);
         lock (SyncRoot)
         {
             ((System.Collections.IList)_innerList)[index] = value;
         }
         DiscoveryBeacon.RefreshServices();
     }
 }
예제 #9
0
 public TivoConnectService this[int index]
 {
     get
     {
         lock (SyncRoot)
         {
             return(_innerList[index]);
         }
     }
     set
     {
         lock (SyncRoot)
         {
             if (value.Name == null)
             {
                 // name must not be null
                 throw new ArgumentException();
             }
             _innerList[index] = value;
             DiscoveryBeacon.RefreshServices();
         }
     }
 }