Esempio n. 1
0
        public virtual void BeforeHandlingRequest(RequestProcessingContext context)
        {
            var testRequest = (SpyRequest)context.Request;

            testRequest.BeforeProcessingTimeStamp = SystemClock.Now();
            Thread.Sleep(50);
        }
Esempio n. 2
0
        public void AfterHandlingRequest(RequestProcessingContext context)
        {
            var testRequest = (SpyRequest)context.Request;

            testRequest.AfterProcessingTimeStamp = SystemClock.Now();
            testRequest.ResponseFromContext      = context.Response;
            Thread.Sleep(50);
        }
Esempio n. 3
0
 public override void Handle(OneWaySpyRequest request)
 {
     request.RequestHandlingTimeStamp = SystemClock.Now();
     Thread.Sleep(50);
 }
Esempio n. 4
0
 public override Response Handle(SpyRequest spyRequest)
 {
     spyRequest.RequestHandlingTimeStamp = SystemClock.Now();
     Thread.Sleep(50);
     return(CreateDefaultResponse());
 }
Esempio n. 5
0
 public virtual void AfterHandlingRequest(RequestProcessingContext context)
 {
     ((SpyRequest)context.Request).SubSequentInterceptorAfterProcessingTimeStamp = SystemClock.Now();
     Thread.Sleep(50);
 }
Esempio n. 6
0
 public void BeforeHandlingRequest(RequestProcessingContext context)
 {
     ((SpyRequest)context.Request).SubSequentInterceptorBeforeProcessingTimeStamp = SystemClock.Now();
     Thread.Sleep(50);
 }