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 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);
services.AddAutoMapper(typeof(MappingProfile).Assembly);
services.TryAddScoped<IConfigService, ConfigService>();
services.TryAddScoped<IProfileControlsTFService, ProfileControlsTFService>();
services.TryAddScoped<IProfileObjStateService, ProfileObjStateService>();
services.TryAddScoped<IProfileService, ProfileService>();
services.TryAddScoped<IStateService, StateService>();
services.AddMediatR(cfg =>
{
@ -27,7 +26,7 @@ public static class DependencyInjection
return services;
}
public class DIOptions
public class WorkFlowServiceOptions
{
public string MediatRLicense { get; set; } = string.Empty;
}

View File

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

View File

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

View File

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

View File

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