public HttpMonitorCheck(
     HttpMonitorCheckId id,
     HttpMonitorId httpMonitorId,
     HttpRequest request,
     HttpRequestTiming requestTiming,
     HttpResponse response = null,
     string errorMessage   = null)
 {
     Id            = id ?? throw new ArgumentNullException(nameof(id));
     HttpMonitorId = httpMonitorId ?? throw new ArgumentNullException(nameof(httpMonitorId));
     Request       = request ?? throw new ArgumentNullException(nameof(request));
     RequestTiming = requestTiming ?? throw new ArgumentNullException(nameof(requestTiming));
     Response      = response;
     ErrorMessage  = errorMessage;
 }
예제 #2
0
 public CheckHttpEndpoint CreateCheckHttpEndpoint(HttpMonitorCheckId httpMonitorCheckId)
 {
     return(new CheckHttpEndpoint(httpMonitorCheckId, Id, Request));
 }