-
Notifications
You must be signed in to change notification settings - Fork 17
Creating Provider Configurations
Anthony Turner edited this page Apr 27, 2020
·
1 revision
When using either an Application Lifecycle Provider or a Rekeyable Object Provider, an Administrator can configure the Provider using a class containing the various options available to the Provider and descriptions as to their purposes.
The Provider Configuration is a powerful way to present configuration options to a user in a consistent user interface without the developer of the Provider having to ever touch a UI component.
public class MyProviderConfiguration : AuthJanitorProviderConfiguration
{
public enum SampleEnum
{
[Description("Red")] RedColor,
[Description("Green")] GreenColor,
[Description("Blue")] BlueColor
}
[DisplayName("String Array")]
[Description("Example Comma-Delimited List")]
public string[] StringArray { get; set; }
[DisplayName("Example Integer")]
[Description("This renders in a numeric HTML control!")]
public int Integer { get; set; }
[DisplayName("Example Enumeration")]
[Description("This describes some colors.")]
public SampleEnum Enumeration { get; set; }
}