refactor(ObjectDto): Verschieben in das Verzeichnis Dto.

- Profil-Dienst entfernen
This commit is contained in:
tekh 2025-07-30 13:32:56 +02:00
parent 904536bd09
commit 4fcc0a08b8
6 changed files with 4 additions and 24 deletions

View File

@ -1,5 +0,0 @@
namespace WorkFlow.Application.Contracts;
public interface IProfileService
{
}

View File

@ -7,16 +7,15 @@ namespace WorkFlow.Application;
public static class DependencyInjection public static class DependencyInjection
{ {
public static IServiceCollection AddWorkFlowServices(this IServiceCollection services, Action<DIOptions>? options = null) public static IServiceCollection AddWorkFlowServices(this IServiceCollection services, Action<WorkFlowServiceOptions>? options = null)
{ {
DIOptions diOptions = new(); WorkFlowServiceOptions diOptions = new();
options?.Invoke(diOptions); options?.Invoke(diOptions);
services.AddAutoMapper(typeof(MappingProfile).Assembly); services.AddAutoMapper(typeof(MappingProfile).Assembly);
services.TryAddScoped<IConfigService, ConfigService>(); services.TryAddScoped<IConfigService, ConfigService>();
services.TryAddScoped<IProfileControlsTFService, ProfileControlsTFService>(); services.TryAddScoped<IProfileControlsTFService, ProfileControlsTFService>();
services.TryAddScoped<IProfileObjStateService, ProfileObjStateService>(); services.TryAddScoped<IProfileObjStateService, ProfileObjStateService>();
services.TryAddScoped<IProfileService, ProfileService>();
services.TryAddScoped<IStateService, StateService>(); services.TryAddScoped<IStateService, StateService>();
services.AddMediatR(cfg => services.AddMediatR(cfg =>
{ {
@ -27,7 +26,7 @@ public static class DependencyInjection
return services; return services;
} }
public class DIOptions public class WorkFlowServiceOptions
{ {
public string MediatRLicense { get; set; } = string.Empty; public string MediatRLicense { get; set; } = string.Empty;
} }

View File

@ -1,5 +1,4 @@
using MediatR; namespace WorkFlow.Application.Dto;
namespace WorkFlow.Application.Objects;
public class ObjectDto public class ObjectDto
{ {
@ -13,7 +12,3 @@ public class ObjectDto
public string? CmdCheckIn { get; set; } public string? CmdCheckIn { get; set; }
} }
public record ReadObjectRequest : IRequest
{
}

View File

@ -1,5 +1,4 @@
using WorkFlow.Application.Buttons; using WorkFlow.Application.Buttons;
using WorkFlow.Application.Objects;
namespace WorkFlow.Application.Dto; namespace WorkFlow.Application.Dto;

View File

@ -4,7 +4,6 @@ using WorkFlow.Application.Dto.Config;
using WorkFlow.Application.Dto.ProfileControlsTF; using WorkFlow.Application.Dto.ProfileControlsTF;
using WorkFlow.Application.Dto.ProfileObjState; using WorkFlow.Application.Dto.ProfileObjState;
using WorkFlow.Application.Dto.State; using WorkFlow.Application.Dto.State;
using WorkFlow.Application.Objects;
using WorkFlow.Domain.Entities; using WorkFlow.Domain.Entities;
namespace WorkFlow.Application; namespace WorkFlow.Application;

View File

@ -1,7 +0,0 @@
using WorkFlow.Application.Contracts;
namespace WorkFlow.Application.Services;
public class ProfileService : IProfileService
{
}