refactor(ObjectDto): Verschieben in das Verzeichnis Dto.
- Profil-Dienst entfernen
This commit is contained in:
parent
904536bd09
commit
4fcc0a08b8
@ -1,5 +0,0 @@
|
||||
namespace WorkFlow.Application.Contracts;
|
||||
|
||||
public interface IProfileService
|
||||
{
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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
|
||||
{
|
||||
}
|
||||
@ -1,5 +1,4 @@
|
||||
using WorkFlow.Application.Buttons;
|
||||
using WorkFlow.Application.Objects;
|
||||
|
||||
namespace WorkFlow.Application.Dto;
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
using WorkFlow.Application.Contracts;
|
||||
|
||||
namespace WorkFlow.Application.Services;
|
||||
|
||||
public class ProfileService : IProfileService
|
||||
{
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user