mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 21:27:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Roblox.RccServiceArbiter
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Log.Event("Starting");
|
||||
//Cleanup old RCCService instances
|
||||
System.Diagnostics.Process[] processlist = System.Diagnostics.Process.GetProcesses();
|
||||
foreach(System.Diagnostics.Process theprocess in processlist)
|
||||
{
|
||||
if (theprocess.ProcessName == "RCCService")
|
||||
{
|
||||
theprocess.Kill();
|
||||
}
|
||||
}
|
||||
|
||||
RccService rccService = new RccService();
|
||||
RccServiceMonitor rccServiceMonitor = new RccServiceMonitor(rccService);
|
||||
Roblox.ServiceProcess.ServiceBasePublic[] otherHosts = new Roblox.ServiceProcess.ServiceBasePublic[1];
|
||||
otherHosts[0] = new Roblox.ServiceProcess.ServiceHostApp<RccServiceMonitor>(rccServiceMonitor);
|
||||
var app = new Roblox.ServiceProcess.ServiceHostApp<RccService>(rccService, otherHosts);
|
||||
app.HostOpened += new EventHandler(delegate(object a,EventArgs b) { rccService.initializeJobManager(); });
|
||||
//var app = new Roblox.ServiceProcess.ServiceHostApp<RccServiceMonitor>(rccServiceMonitor);
|
||||
app.Process(args, delegate() { Roblox.Grid.Arbiter.Common.ArbiterStats stats = new Roblox.Grid.Arbiter.Common.ArbiterStats(rccService.GetStats(false));
|
||||
Console.Out.Write(stats.ToString());
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user