jspuij / RESTier

A turn-key library for building RESTful services
http://odata.github.io/RESTier
Other
2 stars 0 forks source link

Remove public ServiceProvider from InvocationContext #9

Closed jspuij closed 5 years ago

jspuij commented 5 years ago

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.