/// <inheritdoc /> protected override async Task HandleAsync(IJsonObjectQueueItem workItem) { var stream = new MemoryStream(); await this.entityJsonWriter.WriteToStreamAsync(workItem.Document, stream); // now send to Rest Api await fileUploader.SendStreamToHosts(string.Empty, 1, stream, false, false); }