Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

ConfigurationBinder to support more property types #216

Closed
@MichaCo

Description

@MichaCo

Currently the ConfigurationBinder supports only the base types and Enums.

How about adding

  • Type: Expressed as string, e.g. "System.String" or "System.String, System" to include the assembly
  • TimeSpan: Commonly used for timeout properties. Expressed as string: "356.23:59:59.999999" which can be parsed via TimeSpan.Parse
  • DateTimeOffset?

Note: There was a similar feature tracked on the Options repo: aspnet/Options#29, now the binder lives in here in Configuration ;)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions