Remove DispatchR and use Mediator

This commit is contained in:
2026-03-29 20:17:32 +02:00
parent 001ec2dfdb
commit 95704c2753
33 changed files with 85 additions and 81 deletions
@@ -1,5 +1,5 @@
using Ardalis.Result;
using DispatchR.Abstractions.Send;
using Mediator;
using Musify.Application.Contracts.Application;
using Musify.Application.PlayLists.Responses;
using Musify.Domain.Entities;
@@ -11,7 +11,7 @@ namespace Musify.Application.PlayLists.Commands
string Name,
string Description,
IFileData? Picture)
: IRequest<CreatePlayListCommand, Task<Result<PlayListResponse>> >
: ICommand<Result<PlayListResponse>>
{
public static PlayList ToEntity(CreatePlayListCommand command, string originalKey, string smallKey, string mediumKey, string largeKey)
{
@@ -1,8 +1,8 @@
using Ardalis.Result;
using DispatchR.Abstractions.Send;
using Mediator;
namespace Musify.Application.PlayLists.Commands
{
public record DeletePlayListCommand(Guid UserId, Guid PlayListId)
: IRequest<DeletePlayListCommand, Task<Result> >;
: ICommand<Result>;
}
@@ -1,5 +1,5 @@
using Ardalis.Result;
using DispatchR.Abstractions.Send;
using Mediator;
using Musify.Application.Contracts.Application;
using Musify.Application.PlayLists.Responses;
@@ -11,5 +11,5 @@ namespace Musify.Application.PlayLists.Commands
string? NewName,
string? NewDescription,
IFileData? NewPicture)
: IRequest<UpdatePlayListCommand, Task<Result<PlayListResponse>> >;
: ICommand<Result<PlayListResponse>>;
}