mirror of
https://github.com/digital-jellyfish/Virtu.git
synced 2024-05-31 15:41:33 +00:00
f16c1b0b90
Redefined binary resources as EmbeddedResource type. Miscellaneous cosmetic or otherwise minor changes.
30 lines
726 B
C#
30 lines
726 B
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Jellyfish.Virtu.Services
|
|
{
|
|
public class DebugService : MachineService
|
|
{
|
|
public DebugService(Machine machine) :
|
|
base(machine)
|
|
{
|
|
}
|
|
|
|
public void WriteLine(string message)
|
|
{
|
|
OnWriteLine(string.Concat(DateTime.Now.TimeOfDay, ' ', message));
|
|
}
|
|
|
|
public void WriteLine(string format, params object[] args)
|
|
{
|
|
WriteLine(string.Format(CultureInfo.InvariantCulture, format, args));
|
|
}
|
|
|
|
protected virtual void OnWriteLine(string message)
|
|
{
|
|
Debug.WriteLine(message);
|
|
}
|
|
}
|
|
}
|