Commit 09016f2f by guanzhenshan

同上

parent f80b7a72
......@@ -10,22 +10,22 @@ namespace Bailun.DC.SemiSkuWarehouseSales
/// </summary>
class Program
{
//static async Task Main(string[] args)
//{
// Console.WriteLine("半成品SKU+仓库维度的库存,销量,在途,缺货,冗余数据");
// var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
// {
// services.AddHostedService<Services>();
// });
static async Task Main(string[] args)
{
Console.WriteLine("半成品SKU+仓库维度的库存,销量,在途,缺货,冗余数据");
var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
{
services.AddHostedService<Services>();
});
// await builder.RunConsoleAsync();
//}
await builder.RunConsoleAsync();
}
static void Main(string[] args)
{
var _service = new Services();
_service.Init();
}
//static void Main(string[] args)
//{
// var _service = new Services();
// _service.Init();
//}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment