+
Skip to content

AddBlazoredLocalStorage() add public setter for options.JsonSerializerOptions #216

@rf-0

Description

@rf-0

Is your feature request related to a problem? Please describe.
Currently we need to set each JsonSerializerOptions manually independently if we have a static method already defined.

Describe the solution you'd like
Allow for options.JsonSerializerOptions to be set so a static JsonSerializerOptions config can be reused instead of setting each property again.

Blazored.LocalStorage.StorageOptions.LocalStorageOptions.JsonSerializerOptions

public JsonSerializerOptions JsonSerializerOptions { get; **set;** } = new JsonSerializerOptions();

Describe alternatives you've considered
Currently mapping everything manually (converters etc)

Additional context
Cleaner centralized code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew feature that will be added to the project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载