Table of Contents

Class ConfigurationAttribute

Namespace
Phoesion.Glow.SDK.Firefly
Assembly
Phoesion.Glow.SDK.Firefly.Annotations.dll

Mark field/property as a configuration entry

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public class ConfigurationAttribute : Attribute
Inheritance
object
Attribute
ConfigurationAttribute

Constructors

ConfigurationAttribute()

public ConfigurationAttribute()

ConfigurationAttribute(string)

public ConfigurationAttribute(string SectionName)

Parameters

SectionName string

ConfigurationAttribute(string, bool)

public ConfigurationAttribute(string SectionName, bool RegisterInServices)

Parameters

SectionName string
RegisterInServices bool

ConfigurationAttribute(string, bool, bool)

public ConfigurationAttribute(string SectionName, bool RegisterInServices, bool IsSensitive)

Parameters

SectionName string
RegisterInServices bool
IsSensitive bool

Fields

AllowNull

By default, the service host will instantiate a configuration value if is null. Set true to allow null values to pass through

public bool AllowNull

Field Value

bool

IsSensitive

Indicates whether this is a sensitive information (eg. a password). In that case the config will be hidden in the Blaze config editor

public bool IsSensitive

Field Value

bool

RegisterInServices

Register configuration in services using services.Configure{T}(), so it can be resolved using IOptions{T}

public bool RegisterInServices

Field Value

bool

SectionName

The Section name that will be used to resolve the config from the Configuration System. (eg. appsettings.json)

public string? SectionName

Field Value

string