Dev2.Scheduler.ScheduledResourceModel.CreateDebugHistory C# (CSharp) Method

CreateDebugHistory() private method

private CreateDebugHistory ( string debugHistoryPath, string correlationId ) : IList
debugHistoryPath string
correlationId string
return IList
        private IList<IDebugState> CreateDebugHistory(string debugHistoryPath, string correlationId)
        {
            var serializer = new Dev2JsonSerializer();
            var file = DirectoryHelper.GetFiles(debugHistoryPath).FirstOrDefault(a => a.Contains(correlationId));

            if(file == null)
            {
                return new List<IDebugState>();
            }

            return serializer.Deserialize<List<IDebugState>>(FileHelper.ReadAllText(file));
        }