Use file scoped namepace
This commit is contained in:
@@ -3,37 +3,36 @@ using GerstITS.Examples.Logic.Example;
|
||||
using GerstITS.IoC;
|
||||
using GerstITS.System.Json;
|
||||
|
||||
namespace GerstITS.Examples.Api.StartupTasks
|
||||
namespace GerstITS.Examples.Api.StartupTasks;
|
||||
|
||||
internal class ExampleStartupTask : IStartupTask
|
||||
{
|
||||
internal class ExampleStartupTask : IStartupTask
|
||||
#region Fields#
|
||||
|
||||
private readonly IExampleProvider _provider;
|
||||
private readonly IJsonConvert _jsonConvert;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Construtcors
|
||||
|
||||
public ExampleStartupTask(IExampleProvider provider,
|
||||
IJsonConvert jsonConvert)
|
||||
{
|
||||
#region Fields#
|
||||
|
||||
private readonly IExampleProvider _provider;
|
||||
private readonly IJsonConvert _jsonConvert;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Construtcors
|
||||
|
||||
public ExampleStartupTask(IExampleProvider provider,
|
||||
IJsonConvert jsonConvert)
|
||||
{
|
||||
_jsonConvert = jsonConvert;
|
||||
_provider = provider;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IStartupTask
|
||||
|
||||
public StartupPriorities Priority => StartupPriorities.Normal;
|
||||
|
||||
public void Execute()
|
||||
{
|
||||
Debug.WriteLine($"---> {nameof(ExampleStartupTask)}: {_jsonConvert.Serialize(_provider.GetById(123))}");
|
||||
}
|
||||
|
||||
#endregion
|
||||
_jsonConvert = jsonConvert;
|
||||
_provider = provider;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IStartupTask
|
||||
|
||||
public StartupPriorities Priority => StartupPriorities.Normal;
|
||||
|
||||
public void Execute()
|
||||
{
|
||||
Debug.WriteLine($"---> {nameof(ExampleStartupTask)}: {_jsonConvert.Serialize(_provider.GetById(123))}");
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user