Use file scope namespaces
This commit is contained in:
@@ -1,14 +1,9 @@
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Serilog;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TemplateNETService.Business;
|
||||
|
||||
namespace TemplateNETService
|
||||
{
|
||||
namespace TemplateNETService;
|
||||
|
||||
internal class BaseWorker : BackgroundService
|
||||
{
|
||||
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
|
||||
@@ -27,4 +22,3 @@ namespace TemplateNETService
|
||||
Log.Debug("Service stopped...");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,8 +7,8 @@ using Serilog.Events;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using TemplateNETService.Models;
|
||||
|
||||
namespace TemplateNETService.Business
|
||||
{
|
||||
namespace TemplateNETService.Business;
|
||||
|
||||
public class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
@@ -52,4 +52,3 @@ namespace TemplateNETService.Business
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@ using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
||||
namespace TemplateNETService
|
||||
{
|
||||
namespace TemplateNETService;
|
||||
|
||||
public class Startup
|
||||
{
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
@@ -25,4 +25,3 @@ namespace TemplateNETService
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user