public void RegisterWebResponse(WebTransferStatInput data, HttpContext httpContext, long responseLength) { if (_dataCollector == null) { return; } data.ResponseTime = DateTime.UtcNow; data.ResponseStatusCode = httpContext.Response.StatusCode; data.ResponseLength = responseLength + GetHeadersLength(httpContext.Response.Headers); _dataCollector.RegisterWebTransfer(data, httpContext.RequestAborted); }
public Task RegisterWebTransfer(WebTransferStatInput data, CancellationToken cancel) { return(_statDataProvider.WriteDataAsync(new InputStatisticalDataRecord(data), cancel)); }
public void RegisterWebResponse(WebTransferStatInput data, HttpContext httpContext) { RegisterWebResponse(data, httpContext, httpContext.Response.ContentLength ?? 0L); }
public InputStatisticalDataRecord(WebTransferStatInput data) { _webTransferData = data; }