I have base class and creating virtual stubs for usage by subscribers. I just migrated to async/await pattern and having trouble getting it right with tasks.
Here is how I want it to be in base class:
public virtual Task<bool> OnBeforeSaveAsync()
{
return new Task<bool>(p => true);
}
Basically if implementing class doesn't have override - I want this function complete and return "True"
How should I code it?