Ejemplo n.º 1
0
 /// <summary>
 /// 入口
 /// </summary>
 /// <param name="args"></param>
 /// <returns></returns>
 public static async Task Main(string[] args)
 {
     Console.Title = $"{AuthorityConfig.ServerInfo.Name} 版本:[{ApplicationConfig.GetProgramVersion()}]";
     string[] inputArgs = MateralAPPHelper.HandlerArgs(args, AuthorityConfig.ServerInfo);
     AuthorityConsoleHelper.WriteLine($"本服务地址:{ApplicationConfig.Url}");
     AuthorityConsoleHelper.WriteLine($"本服务公开地址:{ApplicationConfig.PublicUrl}");
     await CreateHostBuilder(inputArgs).Build().RunAsync();
 }
Ejemplo n.º 2
0
 public Task RegisterResult(bool isSuccess, string message)
 {
     if (isSuccess)
     {
         AuthorityConsoleHelper.WriteLine("注册成功");
     }
     else
     {
         AuthorityConsoleHelper.WriteLine(message, "注册失败", ConsoleColor.Red);
     }
     return(Task.CompletedTask);
 }