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); }
public void RemoveAllCalloutsFor(object owner) { CalloutManagerImpl.UnregisterCallouts(owner); }