Exemplo n.º 1
0
        public static void WriteLine(string message, Connection channel, string category)
        {
            if (!NetTrace.Enabled)
            {
                return;
            }

            Trace.WriteLine(
                NetTrace.GetMessage(message, channel),
                category
                );
        }
Exemplo n.º 2
0
        public static void WriteLineIf(bool condition, string message, Connection channel, NetTraceCategory category)
        {
            if (!NetTrace.Enabled)
            {
                return;
            }

            if (!NetTrace.ValidateCategory(category))
            {
                return;
            }

            Trace.WriteLineIf(
                condition,
                NetTrace.GetMessage(message, channel),
                NetTrace.GetCategoryName(category)
                );
        }
Exemplo n.º 3
0
        public static void WriteLine(string message, Connection channel, NetTraceCategory category)
        {
            //Console.WriteLine(NetTrace.GetMessage(message, channel));
            if (!NetTrace.Enabled)
            {
                return;
            }

            if (!NetTrace.ValidateCategory(category))
            {
                return;
            }

            Trace.WriteLine(
                NetTrace.GetMessage(message, channel),
                NetTrace.GetCategoryName(category)
                );
        }