示例#1
0
 public ExecutionResult AddEvent(HystrixEventType eventType)
 {
     return(new ExecutionResult(
                Eventcounts.Plus(eventType),
                StartTimestamp,
                ExecutionLatency,
                UserThreadLatency,
                Exception,
                ExecutionException,
                ExecutionOccurred,
                IsExecutedInThread,
                CollapserKey));
 }
示例#2
0
 public ExecutionResult MarkCollapsed(IHystrixCollapserKey collapserKey, int sizeOfBatch)
 {
     return(new ExecutionResult(
                Eventcounts.Plus(HystrixEventType.COLLAPSED, sizeOfBatch),
                StartTimestamp,
                ExecutionLatency,
                UserThreadLatency,
                Exception,
                ExecutionException,
                ExecutionOccurred,
                IsExecutedInThread,
                collapserKey));
 }
示例#3
0
 public ExecutionResult AddEvent(int executionLatency, HystrixEventType eventType)
 {
     if (StartTimestamp >= 0 && !IsResponseRejected)
     {
         return(new ExecutionResult(
                    Eventcounts.Plus(eventType),
                    StartTimestamp,
                    executionLatency,
                    UserThreadLatency,
                    Exception,
                    ExecutionException,
                    ExecutionOccurred,
                    IsExecutedInThread,
                    CollapserKey));
     }
     else
     {
         return(AddEvent(eventType));
     }
 }