Customization
OptionAttribute
allow you to customize the settings members.
OptionAttribute
properties:
Property name | Property type | Description |
---|---|---|
Alias |
| Alias for a settings member. |
DefaultValue |
| Default value for a settings member. |
EncryptionPassphrase |
| Passphrase thats used to encrypt the protected a settings member value. |
Let's for example you are using JSON file for OAuth settings:
Then you should have such settings class:
With this setting up when you call settings in your application service:
Last updated