Files

38 lines
890 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Mono.Options;
using ServiceWire.NamedPipes;
namespace Stride.VisualStudio.Commands
{
class Program
{
public static void Main(string[] args)
{
string pipeAddress = string.Empty;
var p = new OptionSet
{
{ "pipe=", "Pipe for communication", v => pipeAddress = v },
};
p.Parse(args);
var host = new NpHost(pipeAddress + "/IStrideCommands");
host.AddService<IStrideCommands>(new StrideCommands());
host.Open();
// Forbid process to terminate (unless ctrl+c)
while (true)
{
Console.Read();
Thread.Sleep(100);
}
}
}
}