Customization
OptionAttribute
allow you to customize the settings members.
OptionAttribute
properties:
Property name
Property type
Description
Alias
string
Alias for a settings member.
DefaultValue
object
Default value for a settings member.
EncryptionPassphrase
string
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