Use file scope namespaces

This commit is contained in:
2025-08-11 10:13:20 +02:00
parent 5cf1a07526
commit 0f20e727d3
3 changed files with 59 additions and 67 deletions

View File

@@ -1,14 +1,9 @@
using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Hosting;
using Serilog; using Serilog;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TemplateNETService.Business; using TemplateNETService.Business;
namespace TemplateNETService namespace TemplateNETService;
{
internal class BaseWorker : BackgroundService internal class BaseWorker : BackgroundService
{ {
protected override async Task ExecuteAsync(CancellationToken stoppingToken) protected override async Task ExecuteAsync(CancellationToken stoppingToken)
@@ -27,4 +22,3 @@ namespace TemplateNETService
Log.Debug("Service stopped..."); Log.Debug("Service stopped...");
} }
} }
}

View File

@@ -7,8 +7,8 @@ using Serilog.Events;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using TemplateNETService.Models; using TemplateNETService.Models;
namespace TemplateNETService.Business namespace TemplateNETService.Business;
{
public class Program public class Program
{ {
public static void Main(string[] args) public static void Main(string[] args)
@@ -52,4 +52,3 @@ namespace TemplateNETService.Business
}); });
}); });
} }
}

View File

@@ -3,8 +3,8 @@ using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Hosting;
namespace TemplateNETService namespace TemplateNETService;
{
public class Startup public class Startup
{ {
public void ConfigureServices(IServiceCollection services) public void ConfigureServices(IServiceCollection services)
@@ -25,4 +25,3 @@ namespace TemplateNETService
} }
} }
}