giadif
Inheritance or composition
Since the
StartAsync
method returns ValueTask
, you can't run multiple DTask
objects in parallel using the same host, so I was also thinking of keeping it as it is and have implementations specify their own methods to pass extra values to the execution. Something like:
6 replies
Inheritance or composition
A few. Today I have only
AspNetCoreDAsyncHost
, but I plan on implementing AzureFunctionsDAsyncHost
and external libraries may want to implement their own provider. I was wondering "what if they don't want/need the context" or "what if they want callers to pass extra arguments to their public methods"6 replies