[Application] Implement CreateEbookCommand Handler with Background Processing Enqueue #36
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context: When a user clicks "Save to Library" in Blazor WASM, a robust command must handle saving the file, metadata, and initiating heavy background AI tasks.
Role: Senior Backend Engineer (Clean Architecture & CQRS specialist).
Task: Implement
CreateEbookCommandand its handler in theApplicationproject using MediatR.Requirements:
IBrowserFilestream, and the verifiedValidatedTitleandValidatedAuthor.FilePath(wwwroot/assetsfor local dev).IsReadyForReadingtofalse.KnowledgeServicecalls to Gemini, vector generation). Ensure the command handler returns successfully without waiting for background completion.