Add() public method

public Add ( string nodeId, Uri incoming ) : void
nodeId string
incoming System.Uri
return void
Esempio n. 1
0
        private static void Main(string[] args)
        {
            var group = new MonitoredNodeGroup();

            group.Add("Node1", "memory://1".ToUri());
            group.Add("Node2", "memory://2".ToUri());
            group.Add("Node3", "memory://3".ToUri());
            group.Add("Node4", "memory://4".ToUri());

            group.Startup();

            var url = "http://localhost:" + group.Port;

            Process.Start(url);

            Console.WriteLine("Running the harness...");

            group.WaitForShutdown();

            Console.WriteLine("Shutting down the harness");

            group.SafeDispose();
        }
Esempio n. 2
0
        private static void Main(string[] args)
        {
            var group = new MonitoredNodeGroup();
            group.Add("Node1", "memory://1".ToUri());
            group.Add("Node2", "memory://2".ToUri());
            group.Add("Node3", "memory://3".ToUri());
            group.Add("Node4", "memory://4".ToUri());

            group.Startup();

            var url = "http://localhost:" + group.Port;
            Process.Start(url);

            Console.WriteLine("Running the harness...");

            group.WaitForShutdown();

            Console.WriteLine("Shutting down the harness");

            group.SafeDispose();
        }