/// <summary> /// Resets the claim response. /// </summary> /// <param name="rqId">The request id.</param> /// <param name="instance">The database instance.</param> /// <returns></returns> static public bool ResetClaimResponse(string rqId, string instance) { if (rqId.Length == 0) { ErrorLog.LogWarning("ResetClaimResponse must have valid rquid", ServiceName); return(false); } var claimLog = new ClaimSubmissionLog { RquId = rqId, Instance = instance }; return(claimLog.ResetResponse()); }
static internal void Log2ClaimSubmissionLog(ClaimSubmissionLogger.LoggerPackage package) { if (string.IsNullOrEmpty(package.RquId)) { ErrorLog.LogWarning("LogResponseBody must have valid rquid", ServiceName); return; } var claimLog = new ClaimSubmissionLog { RquId = package.RquId, Instance = package.Instance, TimeStamp = package.TimeStamp.ToString(DatabaseInstance.DatabaseDateFormat) }; var results = package.Prefix == ClaimSubmissionLogger.LogType.Request ? claimLog.SetRequest(package.Document) : claimLog.SetResponse(package.Document); ErrorLog.DebugLog(String.Format("claimLog.SetResponse returned {0}", results), ServiceName); }
/// <summary> /// Determines whether [has response body] [the specified rq id]. /// </summary> /// <param name="rqId">The rq id.</param> /// <param name="instance">The database instance.</param> /// <returns></returns> static public string HasResponseBody(string rqId, string instance) { var results = string.Empty; if (rqId.Length == 0) { ErrorLog.LogWarning("HasResponseBody must have valid rquid", ServiceName); return(results); } var claimLog = new ClaimSubmissionLog { RquId = rqId, Instance = instance }; results = claimLog.GetResponse(); ErrorLog.DebugLog( results.Length > 0 ? "claimLog.HasResponseBody returned results" : "claimLog.HasResponseBody returned no results", ServiceName); return(results); }