/// <summary> /// Add a new tracker into the <see cref="BeatPulseContext"/> /// </summary> /// <param name="beatPulseContext">The <see cref="BeatPulseContext"/>.</param> /// <param name="tracker">The tracker to be added.</param> /// <returns><see cref="BeatPulseContext"/>.</returns> public static BeatPulseContext AddTracker(this BeatPulseContext beatPulseContext, IBeatPulseTracker tracker) => beatPulseContext.AddTracker(new BeatPulseTrackerInstanceRegistration(tracker));
public BeatPulseTrackerInstanceRegistration(IBeatPulseTracker tracker) { _instance = tracker ?? throw new ArgumentNullException(nameof(tracker)); }