Skip to content

[Feature] Allow providing a custom JsonSerializer to BaseObjectStorageHelper #3175

@simop-msft

Description

@simop-msft

Describe the problem this feature would solve

Currently, BaseObjectStorageHelper uses a private vanilla JsonSerializer. It means that a consumer of an ObjectStorageHelper cannot provide custom SerializationSettings (Converters, TypeNameHandling, TraceWriter...)

Describe the solution

Add the following constructor: BaseObjectStorageHelper(JsonSerializer jsonSerializer), and make the corresponding field readonly. That way, a consumer can customize the serializer at will.

Describe alternatives you've considered

The constructor could take a subset of options to initialize the JsonSerializer with internally. However, it gives less freedom to the consumer and is less maintainable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions