コード例 #1
0
 /// <summary>
 /// Converts input variables to a monitor object
 /// </summary>
 /// <param name="Method"></param>
 /// <param name="Path"></param>
 /// <param name="RequestId"></param>
 /// <param name="Success"></param>
 /// <param name="StatusCode"></param>
 /// <param name="ResponseTime"></param>
 /// <returns></returns>
 public MonitorObject ToMonitorObject(string Method, string Path, string RequestId, bool Success, string StatusCode, int ResponseTime)
 {
     MonitorObject monitorObject = new MonitorObject();
     monitorObject.Method = Method;
     monitorObject.Path = Path;
     monitorObject.RequestId = RequestId;
     monitorObject.Success = Success;
     monitorObject.StatusCode = StatusCode;
     monitorObject.ResponseTime = ResponseTime;
     return monitorObject;
 }
コード例 #2
0
 /// <summary>
 /// This method inserts monitor info for instrumentation use
 /// </summary>
 /// <param name="Object"></param>
 public void InfoMonitor(MonitorObject Object)
 {
     this.InfoFormat("OfferService|{0}|{1}|{2}|{3}|{4}|{5}", Object.Method, Object.Path, Object.RequestId, Object.Success, Object.StatusCode, Object.ResponseTime);
 }