Exemple #1
0
        public static uint QuerySessionCount()
        {
            SessInfo[] siArray = new SessInfo[2];
            uint       cx      = pcsQuerySessionList(0, siArray);

            return(cx);
        }
Exemple #2
0
        public static int QueryActiveSessionCount()
        {
            SessInfo[] siArray = new SessInfo[2];
            uint       cx      = pcsQuerySessionList(0, siArray);

            cx = pcsQuerySessionList(2, siArray);
            if (cx >= 1)
            {
                char ssnId = siArray[0].ShortName;
            }

            return((int)cx);
        }
Exemple #3
0
        /// <summary>
        /// return the output of pcsQuerySessionList as an IEnumerable of SessInfo.
        /// </summary>
        /// <returns></returns>
        public static IEnumerable <SessInfo> QuerySessionList()
        {
            var sessCx = QuerySessionCount();

            SessInfo[] siArray = new SessInfo[sessCx];
            uint       rv      = pcsQuerySessionList(sessCx, siArray);

            foreach (var sessInfo in siArray)
            {
                yield return(sessInfo);
            }
            yield break;
        }
Exemple #4
0
 public MasterSessionItem(SessInfo Info)
     : this(Info.SessId)
 {
 }