示例#1
0
            public virtual pspBaseCallback removeCallback(pspBaseCallback callback)
            {
                if (!callbacks.Remove(callback))
                {
                    return(null);
                }

                readyCallbacks.Remove(callback);

                return(callback);
            }
示例#2
0
            public virtual bool addCallback(pspBaseCallback callback)
            {
                if (hasCallback(callback))
                {
                    return(true);
                }

                if (NumberOfCallbacks >= maxNumberOfCallbacks)
                {
                    return(false);
                }

                if (registerOnlyLastCallback)
                {
                    callbacks.Clear();
                }

                callbacks.Add(callback);

                return(true);
            }
示例#3
0
 public virtual bool isCallbackReady(pspBaseCallback callback)
 {
     return(readyCallbacks.Contains(callback));
 }
示例#4
0
 public virtual bool hasCallback(pspBaseCallback callback)
 {
     return(callbacks.Contains(callback));
 }