Skip to content

Mention that service scope should be created for each request when injecting a custom service provider #328

@habbes

Description

@habbes

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions