/// <summary> /// Initializes a new instance of the <see cref="Walker" /> class. /// </summary> /// <param name="walkSupporter">The walk supporter.</param> /// <param name="stepDelay">The delay between performing a step.</param> public Walker(ISupportWalk walkSupporter, Func <TimeSpan> stepDelay) { this.walkSupporter = walkSupporter; this.stepDelay = stepDelay; this.walkLock = new ReaderWriterLockSlim(); }
/// <summary> /// Initializes a new instance of the <see cref="Walker"/> class. /// </summary> /// <param name="walkSupporter">The walk supporter.</param> public Walker(ISupportWalk walkSupporter) { this.walkSupporter = walkSupporter; this.walkLock = new ReaderWriterLockSlim(); }