public static void WriteLine(string message, Connection channel, string category) { if (!NetTrace.Enabled) { return; } Trace.WriteLine( NetTrace.GetMessage(message, channel), category ); }
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) ); }
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) ); }