static void Main(string[] args) { var parsed = new CommandLineParser(); parsed.Parse(args); var handler = new AElfModuleHandler(); handler.Register(new AkkaModule()); handler.Build(); var url = $"http://{RpcConfig.Instance.Host}:{RpcConfig.Instance.Port}"; var host = new WebHostBuilder() .UseKestrel() .UseUrls(url) .UseStartup <Startup>() .Build(); host.Run(); }
static void Main(string[] args) { Console.WriteLine(string.Join(" ", args)); var parsed = new CommandLineParser(); parsed.Parse(args); var handler = new AElfModuleHandler(); handler.Register(new DatabaseAElfModule()); handler.Register(new KernelAElfModule()); handler.Register(new SmartContractAElfModule()); handler.Register(new ChainAElfModule()); handler.Register(new MinerAElfModule()); handler.Register(new ChainControllerRpcAElfModule()); handler.Register(new NetRpcAElfModule()); handler.Register(new WalletRpcAElfModule()); handler.Register(new RunnerAElfModule()); handler.Register(new ExecutionAElfModule()); handler.Register(new NetworkAElfModule()); handler.Register(new RpcAElfModule()); handler.Register(new NodeAElfModule()); handler.Register(new SideChainAElfModule()); handler.Register(new LauncherAElfModule()); handler.Register(new SyncAElfModule()); handler.Build(); }