Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structured - core - change StructuredData to StructuredDataDictionary #21

Open
sgryphon opened this issue Jul 18, 2017 · 0 comments
Open

Comments

@sgryphon
Copy link
Owner

Implement IDictionary<string, object> interface, and expose through that.
MessageTemplate is exposed as property "MessageTemplate" in the dictionary (similar to "Exception").
Want to keep as separate class for the string rendering.
Also support "MessageTemplate" property when rendering.

Maybe change IStructuredData to only have Item[string] property, or to simply be a subtype of the dictionary (i.e. enforce other implementer to follow property naming) - but still want explicit so that listeners can distinguish and exclude other dictionaries if they want (but still want interface, so not bound to concrete class).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant