示例#1
0
 public LogRequestDTO(Constants.Constants.Sources source, string userId, DateTime createdAt,
                      DateTime updatedAt, DateTime expiredAt, string token)
 {
     this.ssoUserId        = userId;
     this.source           = source.ToString();
     this.token            = token;
     this.sessionCreatedAt = createdAt;
     this.sessionExpiredAt = expiredAt;
     this.sessionUpdatedAt = updatedAt;
 }
示例#2
0
 public ErrorRequestDTO(Constants.Constants.Sources source, string details)
 {
     this.details = details;
     setSource(source);
 }
示例#3
0
 /// <summary>
 /// Setter method converting Constants.Constants.Sources to the equivalent string value
 /// </summary>
 /// <param name="source">A Constants.Constants.Sources enumeration for the source the error originated</param>
 public void setSource(Constants.Constants.Sources source)
 {
     this.source = source.ToString();
 }
示例#4
0
 /// <summary>
 /// Constructor for a ErrorRequestDTO object
 /// </summary>
 /// <param name="details">A string type holding the stacktrace for the error</param>
 /// <param name="source">A Constants.Constants.Sources enumeration for the source the error originated</param>
 public ErrorRequestDTO(string details, Constants.Constants.Sources source)
 {
     this.details = details;
     this.source  = source.ToString();
     logCreatedAt = DateTime.UtcNow;
 }
示例#5
0
 /// <summary>
 /// Constructor for the LogRequestDTO class
 /// </summary>
 /// <param name="ssoUserId">A string of a GUID of a User object</param>
 /// <param name="source">A Constants.Constants.Sources enumeration for the source the error originated</param>
 public LogRequestDTO(Constants.Constants.Sources source, string userId)
 {
     this.ssoUserId = userId;
     this.source    = source.ToString();
     logCreatedAt   = DateTime.UtcNow;
 }