Beispiel #1
0
        public async Task ReScanFacesAsync(
            RescanFacesRequest request,
            CancellationToken cancellationToken)
        {
            RescanFacesMessage message = new(request.Ids)
            {
                OperationId = request.OperationId
            };

            await _bus.Publish(message, cancellationToken);
        }
    }
Beispiel #2
0
        public async Task <MediaOperationPayload> ReScanFacesAsync(
            RescanFacesRequest input,
            CancellationToken cancellationToken)
        {
            RescanFacesRequest request = input with
            {
                OperationId = input.OperationId ?? Guid.NewGuid().ToString("N")
            };

            await _operationsService.ReScanFacesAsync(request, cancellationToken);

            return(new MediaOperationPayload(request.OperationId));
        }