/// <summary> /// Constructor. /// </summary> public BusyGuard ( [NotNull] BusyState state ) { Sure.NotNull(state, "state"); _state = state; _timeout = TimeSpan.Zero; _Grab(); }
/// <summary> /// Constructor. /// </summary> public BusyGuard ( [NotNull] BusyState state, TimeSpan timeout ) { Sure.NotNull(state, nameof(state)); _state = state; _timeout = timeout; _Grab(); }