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

GetUserName() private method

private GetUserName ( string debugHistoryPath, string correlationId ) : string
debugHistoryPath string
correlationId string
return string
        private string GetUserName(string debugHistoryPath, string correlationId)
        {
            var file = DirectoryHelper.GetFiles(debugHistoryPath).FirstOrDefault(a => a.Contains(correlationId));
            if(file != null) return file.Split('_').Last();
            return "";
        }