示例#1
0
        string UniversalStreamRecordCollectionToString(Collection <UniversalStreamRecord> collection, PSStreamNameEnum streamNameEnum)
        {
            string streamName = streamNameEnum.ToString().ToUpper();
            string streamID   = ((int)streamNameEnum).ToString();

            string objectsFoundMessage   = string.Format("Objects in stream {0} (Stream ID {1}):", streamName, streamID);
            string noObjectsFoundMessage = string.Format("Nothing in stream {0} (Stream ID {1})", streamName, streamID);

            return(UniversalStreamRecordCollectionToString(collection, objectsFoundMessage, noObjectsFoundMessage));
        }
示例#2
0
        string UniversalStreamRecordCollectionToString(Collection<UniversalStreamRecord> collection, PSStreamNameEnum streamNameEnum)
        {
            string streamName = streamNameEnum.ToString().ToUpper();
            string streamID = ((int)streamNameEnum).ToString();

            string objectsFoundMessage = string.Format("Objects in stream {0} (Stream ID {1}):", streamName, streamID);
            string noObjectsFoundMessage = string.Format("Nothing in stream {0} (Stream ID {1})", streamName, streamID);

            return UniversalStreamRecordCollectionToString(collection, objectsFoundMessage, noObjectsFoundMessage);
        }