public static void Main(string[] args) { // Start the RPC client with the handle to the RPC server // and an instance of the service to host. using (var client = new PipeRpcClient(PipeRpcHandle.FromString(args[0]), new Service())) { client.Run(); } }
public static void Main(string[] args) { if (args.Length > 1 && args[1] == "0") { return; } using (var client = new PipeRpcClient(PipeRpcHandle.FromString(args[0]), new Service())) { client.Run(); } }