/// <summary> /// Random spinner /// If no spinner type is passed to constructor, random will be called /// </summary> /// <returns></returns> public DotSpinner Random() { this.Spinner = Spinners[_rand.Next(Spinners.Count)]; return(this); }
public DotSpinner(SpinnerTypes spinnerType, Task task = null) : this(task) { this.Spinner = Spinners.FirstOrDefault(e => e.Name == spinnerType); }