BitSharp.Node.BitSharpNode.Main C# (CSharp) Method

Main() public static method

public static Main ( string args ) : void
args string
return void
        public static void Main(string[] args)
        {
            try
            {
                using (var bitSharpNode = new BitSharpNode(args, strictArgs: true))
                {
                    bitSharpNode.StartAsync().Forget();

                    Console.WriteLine("Press enter to exit node.");
                    Console.ReadLine();
                    Console.WriteLine("Shutting down.");
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
                Environment.Exit(-1);
            }
        }