Exemplo n.º 1
0
    public SuspendLatchToken GetToken()
    {
        SuspendLatchToken token = new SuspendLatchToken(this);

        tokens.Add(token.Key, token);
        return(token);
    }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            SuspendLatchToken other = obj as SuspendLatchToken;

            if (other != null)
            {
                return(Key.Equals(other.Key));
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 3
0
 public void CancelToken(SuspendLatchToken token)
 {
     tokens.Remove(token.Key);
 }