public static Deferrer WithLock(EventHandler handler) { var deferrer = new Deferrer(); deferrer.Locking += handler; return(deferrer); }
public static Deferrer WithFree(EventHandler handler) { var deferrer = new Deferrer(); deferrer.Freeing += handler; return(deferrer); }
public static Deferrer WithBoth(EventHandler lockHandler, EventHandler freeHandler) { var deferrer = new Deferrer(); deferrer.Locking += lockHandler; deferrer.Freeing += freeHandler; return(deferrer); }