Deleted Ordering.BackgroundTasksHost as we'd need .NET Core 2.1 to implement a IHost with IHostedServices
This commit is contained in:
parent
3384e22d06
commit
f948d10346
@ -1,8 +0,0 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<OutputType>Exe</OutputType>
|
|
||||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
</Project>
|
|
@ -1,34 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
// NOT READY WITH Microsoft.Extensions.Hosting out of ASP.NET Core until .NET Core 2.1
|
|
||||||
//using System.Threading.Tasks;
|
|
||||||
//using Microsoft.Extensions.DependencyInjection;
|
|
||||||
//using Microsoft.Extensions.Hosting;
|
|
||||||
|
|
||||||
namespace Ordering.BackgroundTasksHost
|
|
||||||
{
|
|
||||||
class Program
|
|
||||||
{
|
|
||||||
static void Main(string[] args)
|
|
||||||
{
|
|
||||||
Console.WriteLine("Hello World!");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//public class ProgramHelloWorld
|
|
||||||
//{
|
|
||||||
// public static async Task Main(string[] args)
|
|
||||||
// {
|
|
||||||
// var builder = new HostBuilder()
|
|
||||||
// .ConfigureServices((hostContext, services) =>
|
|
||||||
// {
|
|
||||||
// services.AddScoped<IHostedService, MyServiceA>();
|
|
||||||
// services.AddScoped<IHostedService, MyServiceB>();
|
|
||||||
// });
|
|
||||||
|
|
||||||
// await builder.RunConsoleAsync();
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user