private static IssueData PrepareIssueData(string message, MessageIssueLevel issueLevel, bool?visibleToUser, string userHandle, string userInput, IDictionary <string, string> data) { var issueType = new IssueType(message, issueLevel.ToIssueLevel()); var issueData = new IssueData(Guid.NewGuid(), DateTime.UtcNow, Session.GetSessionData(), visibleToUser, data, issueType, Guid.NewGuid(), userHandle, userInput); return(issueData); }
private static IssueData PrepareIssueData(Exception exception, ExceptionIssueLevel issueLevel, bool?visibleToUser, string userHandle, string userInput) { var issueThreadGuid = HandleIssueThreadGuid(exception); var data = exception.Data.Cast <DictionaryEntry>().Where(x => x.Value != null).ToDictionary(item => item.Key.ToString(), item => item.Value.ToString()); var issueType = new IssueType(exception, issueLevel.ToIssueLevel()); var issueData = new IssueData(Guid.NewGuid(), DateTime.UtcNow, Session.GetSessionData(), visibleToUser, data, issueType, issueThreadGuid, userHandle, userInput); return(issueData); }
public IssueData(Guid id, DateTime clientTime, ISessionData session, bool?visibleToUser, IDictionary <string, string> data, IssueType issueType, Guid?issueThreadGuid, string userHandle, string userInput) { Id = id; ClientTime = clientTime; Session = session; VisibleToUser = visibleToUser; Data = data; IssueType = issueType; IssueThreadGuid = issueThreadGuid; UserHandle = userHandle; UserInput = userInput; }