Defining Context at initialisation for Layers
I am fairly committed to layered architecture and it works well most of the time where variables often come from Config. In this instance though I would like to provide Context to a service but that Context is computed inside the service, only availablat "yield time" (?). Not using Context right now, but this means a lot of repetitive passing of arguments and I'd like to find a way, if possible, to do this in a way where I can still represent
What I am doing
What I'd like to do
My Effect-fu is lacking so guidance appreciated.
ServiceX (in the example below) as a Context requirement of ServiceA.What I am doing
What I'd like to do
My Effect-fu is lacking so guidance appreciated.
