petyka
petyka
CC#
Created by petyka on 7/20/2023 in #help
❔ Issue with IOptions when using private getter
no it looks like this: private string Config1 { get; set; } private IEnumerable<string> _realConfig1; public IEnumerable<string> RealConfig1 { get { if (_realConfig1 is null) { _realConfig1 = ... do the transformation ... } return _realConfig1; } }
13 replies
CC#
Created by petyka on 7/20/2023 in #help
❔ Issue with IOptions when using private getter
I just realized that there is a BindNonPublicProperties options, when configuring it, so I made those properties private, and access them by a different, public property,
13 replies
CC#
Created by petyka on 7/20/2023 in #help
❔ Issue with IOptions when using private getter
I'm also confused by the joined configuration 🙂 btw, it is stored in a csv file, and is published by a terraform script, there's no chance we can change it
13 replies