예제 #1
0
        static void Main(string[] args)
        {
            Debug.Listeners.Add(new ConsoleTraceListener());      

            Console.WriteLine("Loading configuration information...");
            var config = new LocalHostEnvironmentConfiguration();
            Console.WriteLine();
            Console.WriteLine(config.ToString());
            Console.WriteLine();

            HostEnvironment.Instance.Initialize(config);

            Console.WriteLine();
            Console.WriteLine("Press enter to exit...");
            Console.ReadLine();
        }
예제 #2
0
파일: Program.cs 프로젝트: melnx/Bermuda
        static void Main(string[] args)
        {
            Debug.Listeners.Add(new ConsoleTraceListener());

            Console.WriteLine("Loading configuration information...");
            var config = new LocalHostEnvironmentConfiguration();

            Console.WriteLine();
            Console.WriteLine(config.ToString());
            Console.WriteLine();

            HostEnvironment.Instance.Initialize(config);

            Console.WriteLine();
            Console.WriteLine("Press enter to exit...");
            Console.ReadLine();
        }
예제 #3
0
        static void Main(string[] args)
        {
            Debug.Listeners.Add(new ConsoleTraceListener());
            Console.WriteLine("Started...");


            var config = new LocalHostEnvironmentConfiguration();
            //var config = new AzureHostEnvironmentConfiguration();
            config.NodeType = ComputeNodeType.NetGateway;
            var compute_node = config.GetComputeNode();
            var processors = config.GetProcessors(compute_node);
            processors.ToList().ForEach(p => p.StartProcessor());

            Console.WriteLine("Open...");

            Console.WriteLine("Press Any Key To Exit...");
            Console.ReadLine();
        }