Skip to content

Commit

Permalink
Add project files.
Browse files Browse the repository at this point in the history
  • Loading branch information
space928 committed Jun 21, 2024
1 parent d1dab14 commit f7608ac
Show file tree
Hide file tree
Showing 6 changed files with 534 additions and 0 deletions.
37 changes: 37 additions & 0 deletions WirelessMicSuiteServer.Test/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;

namespace WirelessMicSuiteServer.Test;

internal class Program
{
public static readonly object logLock = new();

static void Main(string[] args)
{
Log("Starting WirelessMicSuite Test server...");
var assembly = Assembly.GetExecutingAssembly();
Log($"Version: {assembly.GetName().Version}; {FileVersionInfo.GetVersionInfo(assembly.Location).LegalCopyright}");

ShureUHFREmulator shureEmu = new(2202);

while (true)
{
Thread.Sleep(100);
}
}

public static void Log(object message, LogSeverity severity = LogSeverity.Info, [CallerMemberName] string? caller = null, string? className = "Main")
{
Console.WriteLine($"[{DateTime.Now:T}] [{className}] [{caller}] {message}");
}
}

public enum LogSeverity
{
Debug,
Info,
Warning,
Error
}
Loading

0 comments on commit f7608ac

Please sign in to comment.