Files
devops-lab4/src/CommunicationControl/DevOpsProject/DI/LogicConfiguration.cs
T
dsokolovrudakov 9329d76ab6 Fix returned status codes depending on scenario, provide informative logs
Extend logic of encpoints to provide more informative status codes on different scenarios (not found, bad request, etc). Update logging to write structured and informative logs
2025-02-20 00:05:33 +02:00

17 lines
612 B
C#

using DevOpsProject.CommunicationControl.Logic.Services;
using DevOpsProject.CommunicationControl.Logic.Services.Interfaces;
namespace DevOpsProject.CommunicationControl.API.DI
{
public static class LogicConfiguration
{
public static IServiceCollection AddCommunicationControlLogic(this IServiceCollection serviceCollection)
{
serviceCollection.AddTransient<ICommunicationControlService, CommunicationControlService>();
serviceCollection.AddTransient<ISpatialService, SpatialService>();
return serviceCollection;
}
}
}