public override void Visit(RequestHandlerScope requestHandlerScope)
 {
     Assert.IsTrue(this.isContextVisited);
     this.isRequestHandlerVisited = true;
     DiagnosticValidator.ValidateRequestHandlerScope(requestHandlerScope, this.TotalElapsedTime);
 }
 public override void Visit(CosmosClientSideRequestStatistics clientSideRequestStatistics)
 {
     Assert.IsTrue(this.isContextVisited);
     this.isCosmosClientSideRequestStatisticsVisited = true;
     DiagnosticValidator.ValidateClientSideRequestStatistics(clientSideRequestStatistics, this.StatusCode);
 }
 public override void Visit(StoreResponseStatistics storeResponseStatistics)
 {
     Assert.IsTrue(this.isContextVisited);
     this.isStoreResponseStatisticsVisited = true;
     DiagnosticValidator.ValidateStoreResponseStatistics(storeResponseStatistics, this.StartTimeUtc.Value);
 }
 // AddressResolution does not happen on every request.
 public override void Visit(AddressResolutionStatistics addressResolutionStatistics)
 {
     Assert.IsTrue(this.isContextVisited);
     DiagnosticValidator.ValidateAddressResolutionStatistics(addressResolutionStatistics);
 }
 public override void Visit(CosmosSystemInfo cpuLoadHistory)
 {
     Assert.IsTrue(this.isContextVisited);
     DiagnosticValidator.ValidateProcessInfo(cpuLoadHistory);
 }
 public override void Visit(CosmosDiagnosticScope cosmosDiagnosticScope)
 {
     Assert.IsTrue(this.isContextVisited);
     this.isScopeVisited = true;
     DiagnosticValidator.ValidateScope(cosmosDiagnosticScope, this.TotalElapsedTime);
 }