Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            var pipeServer = new PipeServer <MyService, IMyService>();

            pipeServer.Start();
            Console.WriteLine("Server started...");
            Console.ReadLine();
            pipeServer.Stop();
            Console.WriteLine("Server stopped!");
            Console.ReadLine();
        }
Exemplo n.º 2
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            //start the pipe server if it's not already running
            if (!pipeServer.Running)
            {
                pipeServer.Start(tbPipeName.Text);
                btnStart.Enabled = false;

                tbReceived.Text += "Server has started." + "\r\n";

                // Setting up a Admin account
                AdminUserCreation(adminUserId, adminPassword);
            }
            else
            {
                tbReceived.Text += "Server already running.";
            }
        }