internal void RemoveSink(WmiEventSink eventSink)
        {
            try {
                lock (m_sinkCollection) {
                    m_sinkCollection.Remove(eventSink.GetHashCode());
                }

                // Release the stub as we are now disconnected
                eventSink.ReleaseStub();
            } catch {}
        }
 internal void RemoveSink(WmiEventSink eventSink)
 {
     try
     {
         lock (this.m_sinkCollection)
         {
             this.m_sinkCollection.Remove(eventSink.GetHashCode());
         }
         eventSink.ReleaseStub();
     }
     catch
     {
     }
 }
Exemplo n.º 3
0
		internal void RemoveSink(WmiEventSink eventSink)
		{
			try
			{
				lock (this.m_sinkCollection)
				{
					this.m_sinkCollection.Remove(eventSink.GetHashCode());
				}
				eventSink.ReleaseStub();
			}
			catch
			{
			}
		}
        internal void RemoveSink (WmiEventSink eventSink)
        {
            try 
            {
                lock (m_sinkCollection) 
                {
                    m_sinkCollection.Remove (eventSink.GetHashCode ());
                }

                // Release the stub as we are now disconnected
                eventSink.ReleaseStub ();
            } 
            catch
            {
            }
        }