/// <summary> /// Determines whether the current <see cref="Timestamped{T}" /> value has the same <see cref="Value"/> and <see cref="Timestamp"/> as a specified <see cref="Timestamped{T}" /> value. /// </summary> /// <param name="other">An object to compare to the current <see cref="Timestamped{T}" /> value.</param> /// <returns><c>true</c> if both <see cref="Timestamped{T}" /> values have the same <see cref="Value"/> and <see cref="Timestamp"/>; otherwise, <c>false</c>.</returns> public bool Equals(Timestamped <T> other) { return(other.Timestamp.Equals(Timestamp) && EqualityComparer <T> .Default.Equals(Value, other.Value)); }
public bool Equals(Timestamped <T> other) { return(timestamp == other.timestamp && value.Equals(other.value)); }
public string GetInputKey(Timestamped <object> evt) { return(evt.Value.GetType().FullName); }
public Type GetInputKey(Timestamped <T> evt) { return(typeof(T)); }
private static object Transform(Timestamped <object> item) { return(item.Value); }
private static DateTimeOffset GetTimestamp(Timestamped <object> item) { return(item.Timestamp); }