giadif
giadif
CC#
Created by giadif on 4/5/2025 in #help
Inheritance or composition
I think you pointed me in the right direction, I'll see how to apply this in my case. Thanks a lot!
6 replies
CC#
Created by giadif on 4/5/2025 in #help
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:
using (var contextScope = host.SetContext(myContext))
{
await host.StartAsync(...);
}
using (var contextScope = host.SetContext(myContext))
{
await host.StartAsync(...);
}
6 replies
CC#
Created by giadif on 4/5/2025 in #help
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
CC#
Created by Steivsh on 4/5/2025 in #help
✅ Beginner Projects
Do the things that most excite you and you'll learn everything on your way. My fist approach to programming was a Java betting app to keep track of my bets and budget. I knew nothing about OOP but I figured it out along all the other stuff I needed for my project
17 replies