Beispiel #1
0
        /// <summary>
        /// Returns all the dataset containers that are used in a particular task.
        /// </summary>
        /// <param name="task"></param>
        /// <param name="streamname"></param>
        /// <returns></returns>
        public static string[] DataSetNames(this PandaTask task, string streamname)
        {
            if (task == null)
            {
                throw new ArgumentNullException(nameof(task));
            }

            return(task.datasets.Where(ds => ds.streamname == streamname).GroupBy(ds => ds.containername).Select(k => k.Key).ToArray());
        }
Beispiel #2
0
 public static string[] DataSetNamesOUT(this PandaTask task)
 {
     return(task.DataSetNames("OUTPUT0"));
 }
Beispiel #3
0
 public static string[] DataSetNamesIN(this PandaTask task)
 {
     return(task.DataSetNames("IN"));
 }