예제 #1
0
        public ICallout AddCallout(object owner, ICalloutCallback callback, TimeSpan delay, bool persistant)
        {
            BasicCallout c = new BasicCallout();

            c.When       = DateTime.Now + delay;
            c.Callback   = callback;
            c.Owner      = owner;
            c.Persistent = persistant;
            c.Delay      = delay;
            CalloutManagerImpl.RegisterCallout(c);
            return(c);
        }
예제 #2
0
 public void RemoveAllCalloutsFor(object owner)
 {
     CalloutManagerImpl.UnregisterCallouts(owner);
 }