Skip to content

Instantly share code, notes, and snippets.

@vahidvdn
Created January 21, 2022 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vahidvdn/e95a7d2791ac1a27a70c644fa23f7fad to your computer and use it in GitHub Desktop.
Save vahidvdn/e95a7d2791ac1a27a70c644fa23f7fad to your computer and use it in GitHub Desktop.
@CommandHandler(AddProductToCartCommand)
export class AddProductToCartCommandHandler implements ICommandHandler<AddProductToCartCommand> {
constructor(private eventBus: EventBus) {}
async execute(command: AddProductToCartCommand): Promise<void> {
// ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment