public SuspendedSession(BusyStateHandler handler) { if (handler == null) { throw new ArgumentNullException(nameof(handler)); } _handler = handler; }
public BusySession(BusyStateHandler handler) { Contract.Requires<ArgumentNullException>(handler != null); _handler = handler; }