Browse Source

Deleted Ordering.BackgroundTasksHost as we'd need .NET Core 2.1 to implement a IHost with IHostedServices

pull/811/head
Cesar De la Torre 7 years ago
parent
commit
f948d10346
2 changed files with 0 additions and 42 deletions
  1. +0
    -8
      src/Services/Ordering/Ordering.BackgroundTasksHost/Ordering.BackgroundTasksHost.csproj
  2. +0
    -34
      src/Services/Ordering/Ordering.BackgroundTasksHost/Program.cs

+ 0
- 8
src/Services/Ordering/Ordering.BackgroundTasksHost/Ordering.BackgroundTasksHost.csproj View File

@ -1,8 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
</Project>

+ 0
- 34
src/Services/Ordering/Ordering.BackgroundTasksHost/Program.cs View File

@ -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…
Cancel
Save