Ejemplo n.º 1
0
        internal void PrepareToResend(ServerEndPoint resendTo, bool isMoved)
        {
            if (performance == null)
            {
                return;
            }

            var oldPerformance = performance;

            oldPerformance.SetCompleted();
            performance = null;

            createdDateTime  = DateTime.UtcNow;
            createdTimestamp = System.Diagnostics.Stopwatch.GetTimestamp();
            performance      = ProfileStorage.NewAttachedToSameContext(oldPerformance, resendTo, isMoved);
            performance.SetMessage(this);
        }
Ejemplo n.º 2
0
 internal void SetProfileStorage(ProfileStorage storage)
 {
     performance = storage;
     performance.SetMessage(this);
 }