示例#1
0
 public CallbackData(
     SharedCallbackData shared,
     IResponseCompletionSource ctx,
     Message msg)
 {
     this.shared    = shared;
     this.context   = ctx;
     this.Message   = msg;
     this.stopwatch = CoarseStopwatch.StartNew();
 }
示例#2
0
文件: LRU.cs 项目: pipermatt/orleans
 public TimestampedValue(LRU <TKey, TValue> l, TValue v)
 {
     Generation = Interlocked.Increment(ref l.nextGeneration);
     Value      = v;
     Age        = CoarseStopwatch.StartNew();
 }
示例#3
0
文件: LRU.cs 项目: dotnet/orleans
 public TimestampedValue(LRU <TKey, TValue> l, TValue v, long generation)
 {
     Generation = generation;
     Value      = v;
     Age        = CoarseStopwatch.StartNew();
 }