Closed koenbeuk closed 1 year ago
Why async triggers call both sync and async ones
This is for ergonomics sake. Often you want to have a simple trigger:
class SimpleTrigger : IBeforeSaveTrigger<IEnttiy> {
public void BeforeSave(ITriggerContext<IEntity> context) {
context.ModifiedDate = DateTime.UtcNow;
}
}
There should be no need to implement an async variant of this trigger
why one interface does not include both sync/async ones just like ef core does.
Again, for ergonomics. In the above example, I'm not interested in anything Async related.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This still needs an update
Why async triggers call both sync and async ones why one interface does not include both sync/async ones just like ef core does.
async -> triggers async method sync -> trigger sync method