CalculateDuration() public méthode

public CalculateDuration ( ) : double
Résultat double
 public bool CanFullyCache(HttpJsonRequestFactory jsonRequestFactory, HttpJsonRequest httpJsonRequest, string postedData)
 {
     if (allRequestsCanBeServedFromAggressiveCache)             // can be fully served from aggressive cache
     {
         jsonRequestFactory.InvokeLogRequest(holdProfilingInformation, new RequestResultArgs
         {
             DurationMilliseconds = httpJsonRequest.CalculateDuration(),
             Method     = httpJsonRequest.webRequest.Method,
             HttpResult = 0,
             Status     = RequestStatus.AggresivelyCached,
             Result     = "",
             Url        = httpJsonRequest.webRequest.RequestUri.PathAndQuery,
             PostedData = postedData
         });
         return(true);
     }
     return(false);
 }
Exemple #2
0
		public bool CanFullyCache(HttpJsonRequestFactory jsonRequestFactory, HttpJsonRequest httpJsonRequest, string postedData)
		{
			if (allRequestsCanBeServedFromAggressiveCache) // can be fully served from aggresive cache
			{
				jsonRequestFactory.InvokeLogRequest(holdProfilingInformation, new RequestResultArgs
				{
					DurationMilliseconds = httpJsonRequest.CalculateDuration(),
					Method = httpJsonRequest.webRequest.Method,
					HttpResult = 0,
					Status = RequestStatus.AggresivelyCached,
					Result = "",
					Url = httpJsonRequest.webRequest.RequestUri.PathAndQuery,
					PostedData = postedData
				});
				return true;
			}
			return false;
		}