Program.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using ERP.Core;
  2. using ERP.Framework.Constants;
  3. namespace ERP
  4. {
  5. public class Program
  6. {
  7. public static void Main(string[] args)
  8. {
  9. Console.Title = "ERP.Application";
  10. Console.WriteLine($@"
  11. _____ ____ ____ ____ ____ ____ _ _ ____ ____ _____ _ ____ _
  12. / __// __\/ __\ / _ \/ __\/ __\/ \ / \/ _\/ _ \/__ __\/ \/ _ \/ \ /|
  13. | \ | \/|| \/| | / \|| \/|| \/|| | | || / | / \| / \ | || / \|| |\ ||
  14. | /_ | /| __/__| |-||| __/| __/| |_/\| || \_ | |-|| | | | || \_/|| | \||
  15. \____\\_/\_\\_/ \/\_/ \|\_/ \_/ \____/\_/\____/\_/ \| \_/ \_/\____/\_/ \|
  16. -------------------------------------------------------------------------------------
  17. Start Time: {DateTime.Now.ToString(DateTimeConstant.Date_Long)}");
  18. var app = WebApplication
  19. .CreateBuilder(args)
  20. .InitApplication()
  21. .Build();
  22. app.InitConfigure();
  23. app.Run();
  24. //var builder = WebApplication.CreateBuilder(args);
  25. //// Add services to the czxczzxcontainer.
  26. //builder.Services.AddControllers();
  27. //// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
  28. //builder.Services.AddEndpointsApiExplorer();
  29. //builder.Services.AddSwaggerGen();
  30. //var app = builder.Build();
  31. //// Configure the HTTP request pipeline.
  32. //if (app.Environment.IsDevelopment())
  33. //{
  34. // app.UseSwagger();
  35. // app.UseSwaggerUI();
  36. //}
  37. //app.UseHttpsRedirection();
  38. //app.UseAuthorization();
  39. //app.MapControllers();
  40. //app.Run();
  41. }
  42. }
  43. }