When customers create a custom service provide to configure customer services to pass to IODataResponseMessage and pass to ODataMessageWriter, for example when changing the default JSON writer, it's one obvious that a custom service scope should be created for each request because AddDefaultODataServices(). When a service scope is not created, the scoped service instances end being shared across requests, which can lead to data races.
When customers create a custom service provide to configure customer services to pass to
IODataResponseMessage
and pass toODataMessageWriter
, for example when changing the default JSON writer, it's one obvious that a custom service scope should be created for each request becauseAddDefaultODataServices()
. When a service scope is not created, the scoped service instances end being shared across requests, which can lead to data races.