コード例 #1
0
        private void RenderAppenderLogDatum(SNSDatum snsDatum, TextWriter writer)
        {
            if (!String.IsNullOrEmpty(snsDatum.Message))
                writer.Write(snsDatum.Message + " ");

            if (!String.IsNullOrEmpty(snsDatum.Topic))
                writer.Write("Topic: {0}", snsDatum.Topic);

            //if (snsDatum.DelaySeconds.HasValue)
            //    writer.Write("DelaySeconds: {0}, ", snsDatum.DelaySeconds);

            //if (!String.IsNullOrEmpty(snsDatum.ID))
            //    writer.Write("ID: {0}", snsDatum.ID);
        }
コード例 #2
0
        private void RenderAppenderLogDatum(SNSDatum snsDatum, TextWriter writer)
        {
            if (!String.IsNullOrEmpty(snsDatum.Message))
            {
                writer.Write(snsDatum.Message + " ");
            }

            if (!String.IsNullOrEmpty(snsDatum.Topic))
            {
                writer.Write("Topic: {0}", snsDatum.Topic);
            }

            //if (snsDatum.DelaySeconds.HasValue)
            //    writer.Write("DelaySeconds: {0}, ", snsDatum.DelaySeconds);

            //if (!String.IsNullOrEmpty(snsDatum.ID))
            //    writer.Write("ID: {0}", snsDatum.ID);
        }