private void WriteOutput(KernelLogEntry logEntry)
        {
            if (this.stopRequest)
            {
                return;
            }

            try
            {
                this.WriteObject(logEntry);
            }
            catch (PipelineStoppedException)
            {
                this.stopRequest = true;
            }
        }
        private static void SetPropertiesKernelLogEntry(string value, EntryValue valueInterpretation, KernelLogEntry result)
        {
            switch (valueInterpretation)
            {
            case EntryValue.c_port:
                result.ClientPort = Int32.Parse(value);
                break;

            case EntryValue.sc_status:
                result.ProtocolStatus = value;
                break;

            case EntryValue.s_queuename:
                result.QueueName = value;
                break;

            case EntryValue.s_reason:
                result.Reason = value;
                break;

            case EntryValue.SiteId:
                result.SiteId = value;
                break;

            case EntryValue.ProtocolStatus:
                result.ProtocolStatus = value;
                break;

            case EntryValue.Version:
                result.Version = value;
                break;

            case EntryValue.cs_uri:
                result.Uri = value;
                break;
            }
        }