I want to initialize the class attributes from the configuration file such as:
[LuisModel(modelID: ConfigurationManager.AppSettings["LUISAppId"], subscriptionKey: ConfigurationManager.AppSettings["LUISSubscription"], domain: ConfigurationManager.AppSettings["LUISDomain"])]
[Serializable]
public class NoteDialog : LuisDialog<object>
{
}
but I get the following error:
An attribute argument must be a contant expression, typeof expression or array creation expression of an attribute parameter type
Any idea if the class attributes can be read from a config file?