private ProfileStorage(ConcurrentProfileStorageCollection pushTo, ServerEndPoint server, ProfileStorage resentFor, RetransmissionReasonType? reason)
 {
     PushToWhenFinished = pushTo;
     OriginalProfiling = resentFor;
     Server = server;
     RetransmissionReason = reason;
 }
 public static ProfileStorage NewAttachedToSameContext(ProfileStorage resentFor, ServerEndPoint server, bool isMoved)
 {
     return new ProfileStorage(resentFor.PushToWhenFinished, server, resentFor, isMoved ? RetransmissionReasonType.Moved : RetransmissionReasonType.Ask);
 }
 internal Enumerator(ProfileStorage head)
 {
     Head          = head;
     CurrentBacker = null;
 }
 /// <summary>
 /// Resets the enumeration.
 /// </summary>
 public void Reset()
 {
     CurrentBacker = null;
 }
 /// <summary>
 /// Disposes the enumeration.
 /// subsequent attempts to enumerate results in undefined behavior.
 /// </summary>
 public void Dispose()
 {
     CurrentBacker = Head = null;
 }
 internal ProfiledCommandEnumerable(ProfileStorage head)
 {
     Head = head;
 }
Ejemplo n.º 7
0
 internal void SetProfileStorage(ProfileStorage storage)
 {
     performance = storage;
     performance.SetMessage(this);
 }
 public static ProfileStorage NewAttachedToSameContext(ProfileStorage resentFor, ServerEndPoint server, bool isMoved)
 {
     return(new ProfileStorage(resentFor.PushToWhenFinished, server, resentFor, isMoved ? RetransmissionReasonType.Moved : RetransmissionReasonType.Ask));
 }
 private ProfileStorage(ConcurrentProfileStorageCollection pushTo, ServerEndPoint server, ProfileStorage resentFor, RetransmissionReasonType?reason)
 {
     PushToWhenFinished   = pushTo;
     OriginalProfiling    = resentFor;
     Server               = server;
     RetransmissionReason = reason;
 }