public CallbackData( SharedCallbackData shared, IResponseCompletionSource ctx, Message msg) { this.shared = shared; this.context = ctx; this.Message = msg; this.stopwatch = CoarseStopwatch.StartNew(); }
public TimestampedValue(LRU <TKey, TValue> l, TValue v) { Generation = Interlocked.Increment(ref l.nextGeneration); Value = v; Age = CoarseStopwatch.StartNew(); }
public TimestampedValue(LRU <TKey, TValue> l, TValue v, long generation) { Generation = generation; Value = v; Age = CoarseStopwatch.StartNew(); }