Moved more methods into extra script
This commit is contained in:
parent
6793245822
commit
046cfe3d4f
2 changed files with 4 additions and 4 deletions
|
|
@ -16,10 +16,6 @@ namespace LightReflectiveMirror
|
||||||
partial class Program
|
partial class Program
|
||||||
{
|
{
|
||||||
public static void Main(string[] args) => new Program().MainAsync().GetAwaiter().GetResult();
|
public static void Main(string[] args) => new Program().MainAsync().GetAwaiter().GetResult();
|
||||||
|
|
||||||
public int GetConnections() => _currentConnections.Count;
|
|
||||||
public TimeSpan GetUptime() => DateTime.Now - _startupTime;
|
|
||||||
public int GetPublicRoomCount() => _relay.rooms.Where(x => x.isPublic).Count();
|
|
||||||
public List<Room> GetRooms() => _relay.rooms;
|
public List<Room> GetRooms() => _relay.rooms;
|
||||||
|
|
||||||
public async Task MainAsync()
|
public async Task MainAsync()
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,10 @@ namespace LightReflectiveMirror
|
||||||
partial class Program
|
partial class Program
|
||||||
{
|
{
|
||||||
|
|
||||||
|
public int GetConnections() => _currentConnections.Count;
|
||||||
|
public TimeSpan GetUptime() => DateTime.Now - _startupTime;
|
||||||
|
public int GetPublicRoomCount() => _relay.rooms.Where(x => x.isPublic).Count();
|
||||||
|
|
||||||
static void WriteLogMessage(string message, ConsoleColor color = ConsoleColor.White, bool oneLine = false)
|
static void WriteLogMessage(string message, ConsoleColor color = ConsoleColor.White, bool oneLine = false)
|
||||||
{
|
{
|
||||||
Console.ForegroundColor = color;
|
Console.ForegroundColor = color;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue