Explicitly pass context object versus injecting with IoC
- by SonOfPirate
I have a layered service application where the service layer delegates operations into the domain layer for execution. Many of these operations need to know the context under which they are operation. (The context included the identity of the current user, culture information, etc. received from the caller.)
For example, I have an API method…