/// <summary> /// Instantiates a new QueuerReponse object from the supplied argument /// </summary> /// <param name="Status">The status of the response</param> /// <param name="ResponseKey">The repsonse message key. A list of response keys and messages can be found in Resource\QueuerResources.resx</param> /// <param name="Ex">The exception which caused the failure in the case of a failure responses</param> public QueuerResponse(QueuerResponseStatus Status, string ResponseKey, Exception Ex) { this._ResponseDateTime = DateTime.UtcNow; this._Status = Status; this._ResponseMessage = Status == QueuerResponseStatus.DebugMesssage || Status == QueuerResponseStatus.Failed ? ResponseKey : GetResponseMessage(ResponseKey); this._ResponseException = Ex; }
public QueuerResponse(string Key, string Environment, QueuerResponseStatus Status, string ResponseMessage, Exception Ex) { this._ResponseDateTime = DateTime.UtcNow; this._Key = Key; this._Status = Status; this._Environment = Environment; this._ResponseMessage = ResponseMessage; this._Exception = Ex; }
private QueuerResponse(QueuerResponseStatus Status, string ResponseMessage, DateTime ResponseDateTime) { this._ResponseDateTime = ResponseDateTime; this._Status = Status; this._ResponseMessage = ResponseMessage; }