The InvocationContext should not expose (nor contain) a reference to the a ServiceProvider. This invites to code the ServiceLocator anti-pattern. First lets make it private, and in the future remove the reference completely once we have removed all calls to GetApiService.
The InvocationContext should not expose (nor contain) a reference to the a ServiceProvider. This invites to code the ServiceLocator anti-pattern. First lets make it private, and in the future remove the reference completely once we have removed all calls to GetApiService.
This is part of https://github.com/OData/RESTier/issues/629.