System.Collections.Generic.List.Contains(WorkContext)

Here are the examples of the csharp api System.Collections.Generic.List.Contains(WorkContext) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : SSEMailboxHandler.Mailbox.cs
with MIT License
from azist

public bool ConnectAnotherClient(WorkContext work)
    {
      if (work==null || work.Disposed || m_IsDead || Disposed) return false;

      lock(m_Clients)
      {
        if (m_IsDead || m_Clients.Contains(work)) return false;
        m_Clients.Add(work);
        return true;
      }
    }