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; }
public ErrorRequestDTO(Constants.Constants.Sources source, string details) { this.details = details; setSource(source); }
/// <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(); }
/// <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; }
/// <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; }