Example #1
0
        public void InformExistingInstance(string[] args)
        {
            var host = new ChannelFactory <ISingleInstanceService>(new NetNamedPipeBinding(), new EndpointAddress(UriString)).CreateChannel();

            host.FocusApplication();
            if (args.Any())
            {
                host.AddNewTorrent(args[0]);
            }
        }