Beispiel #1
0
 public void Add(UInt16 funcID, DeleACKCallback callback)
 {
     if (!_list.ContainsKey(funcID))
     {
         _list[funcID] = callback;
     }
 }
Beispiel #2
0
    public void Ack(UInt16 funcID)
    {
        DeleACKCallback callback = null;

        if (_list.TryGetValue(funcID, out callback))
        {
            if (callback != null)
            {
                callback();
            }
            _list.Remove(funcID);
        }
    }