Exemplo n.º 1
0
        public async Task <Either <BaseError, Unit> > Handle(SignOutOfPlex request, CancellationToken cancellationToken)
        {
            List <int> ids = await _mediaSourceRepository.DeleteAllPlex();

            await _searchIndex.RemoveItems(ids);

            await _plexSecretStore.DeleteAll();

            _entityLocker.UnlockPlex();

            return(Unit.Default);
        }