/// <summary> /// Creates a <see cref="Recorded{Notification}"/> instance with <see cref="NotificationKind.OnError"/> kind. /// </summary> /// <typeparam name="T">Type of the notifications.</typeparam> /// <param name="time">Virtual time the value was produced on.</param> /// <param name="error">The exception to record.</param> /// <returns> /// A new <see cref="Recorded{Notification}"/> instance with <see cref="NotificationKind.OnError"/> kind. /// </returns> public static Recorded <Notification <T> > OnError <T>( TimeSpan time, Exception error) { return(Recorded.OnError <T>(time.Ticks, error)); }
/// <summary> /// Creates a <see cref="Recorded{Notification}"/> instance with <see cref="NotificationKind.OnNext"/> kind. /// </summary> /// <typeparam name="T">Type of the notifications.</typeparam> /// <param name="time">Virtual time the value was produced on.</param> /// <param name="value">The value.</param> /// <returns> /// A new <see cref="Recorded{Notification}"/> instance with <see cref="NotificationKind.OnNext"/> kind. /// </returns> public static Recorded <Notification <T> > OnNext <T>( TimeSpan time, T value) { return(Recorded.OnNext(time.Ticks, value)); }
/// <summary> /// Creates a <see cref="Recorded{Notification}"/> instance with <see cref="NotificationKind.OnCompleted"/> kind. /// </summary> /// <typeparam name="T">Type of the notifications.</typeparam> /// <param name="time">Virtual time the value was produced on.</param> /// <returns> /// A new <see cref="Recorded{Notification}"/> instance with <see cref="NotificationKind.OnCompleted"/> kind. /// </returns> public static Recorded <Notification <T> > OnCompleted <T>(TimeSpan time) { return(Recorded.OnCompleted <T>(time.Ticks)); }