Use file scoped namepace

This commit is contained in:
2022-12-22 15:29:53 +01:00
parent 27bf5f0b24
commit 6d7e447ccc
51 changed files with 886 additions and 937 deletions

View File

@@ -2,19 +2,18 @@
using GerstITS.Mapping.AutoMapper;
using Microsoft.Extensions.DependencyInjection;
namespace GerstITS.Examples.Logic
namespace GerstITS.Examples.Logic;
public sealed partial class Module
{
public sealed partial class Module
#region Methods
private static void RegisterExample(IServiceCollection container)
{
#region Methods
container.RegisterMappingsOf<IExampleProvider>();
private static void RegisterExample(IServiceCollection container)
{
container.RegisterMappingsOf<IExampleProvider>();
container.AddScoped<IExampleProvider, ExampleProvider>();
}
container.AddScoped<IExampleProvider, ExampleProvider>();
}
#endregion
}
#endregion
}