private Task AddDocumentToToken(Token token, IndexFragmentCommand command, CancellationToken cancellationToken) { var documentIndex = new DocumentEntity { Id = command.UploadId, Name = command.FileName, Extension = command.Extension.ToString() }; return(_tokens.AddDocumentToTokenAsync(documentIndex, token.Tag, cancellationToken)); }