/// <summary> /// Generates a new <see cref="BasicConcurrencyToken"/> from a <see cref="TimeSpan"/> /// </summary> /// <param name="timeSpan">The time span.</param> /// <returns></returns> public static BasicConcurrencyToken FromTimeSpan(TimeSpan timeSpan) { var basicConcurrentyToken = new BasicConcurrencyToken(); basicConcurrentyToken.ConcurrencyToken = timeSpan.Ticks; return(basicConcurrentyToken); }
/// <summary> /// Generates a new <see cref="BasicConcurrencyToken"/> from a <see cref="TimeSpan"/> /// </summary> /// <param name="timeSpan">The time span.</param> /// <returns></returns> public static BasicConcurrencyToken FromTimeSpan(TimeSpan timeSpan) { var basicConcurrentyToken = new BasicConcurrencyToken(); basicConcurrentyToken.ConcurrencyToken = timeSpan.Ticks; return basicConcurrentyToken; }