Esempio n. 1
0
        public byte[] GetResidue(string key)
        {
            if (D2Sockets == null || !D2Sockets.Contains(key) || key.IsNullOrEmpty())
            {
                return(null);
            }

            try
            {
                return(D2Sockets.Get(key).residue);
            }
            catch
            {
                return(null);
            }
        }
Esempio n. 2
0
        public bool SetResidue(string key, byte[] residue)
        {
            if (D2Sockets == null || !D2Sockets.Contains(key) || key.IsNullOrEmpty())
            {
                return(false);
            }

            try
            {
                D2Sockets.Get(key).residue = residue;
                return(true);
            }
            catch
            {
                return(false);
            }
        }