public async Task <Unit> Handle(UpdateActorCommand request, CancellationToken cancellationToken)
    {
        ArgumentNullException.ThrowIfNull(request, nameof(request));

        _logger.LogInformation("Updating actor with ActorId: {ActorId}.", request.ActorId);

        var actorId    = new ActorId(request.ActorId);
        var externalId = new ExternalActorId(request.ExternalActorId);

        var actor = new Actor(actorId, externalId);
        await _actorRepository.AddOrUpdateAsync(actor).ConfigureAwait(false);

        return(Unit.Value);
    }