IEventBus

This commit is contained in:
2026-03-20 09:53:54 +01:00
parent 18da740e08
commit 676910e462
3 changed files with 13 additions and 13 deletions
@@ -11,7 +11,7 @@ using Musify.Domain.Entities;
namespace Musify.Application.PlayLists.Commands.CreatePlayList
{
public class CreatePlayListCommandHandler(IPublishEndpoint publishEndpoint, IDatabase database, IStorageHandler storageHandler,
public class CreatePlayListCommandHandler(IEventBus eventBus, IDatabase database, IStorageHandler storageHandler,
ILogger<CreatePlayListCommandHandler> logger, StorageSettings storageConfiguration, PlayListConfiguration playListConfiguration)
: IRequestHandler<CreatePlayListCommand, Task<Result<PlayListResponse>> >
{
@@ -61,7 +61,7 @@ namespace Musify.Application.PlayLists.Commands.CreatePlayList
try
{
await publishEndpoint.Publish(new ResizePictureEvent(
await eventBus.PublishAsync(new ResizePictureEvent(
storageConfiguration.BucketName,
originalImageStorageKey,
[