You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had to extend the SieveProcessor class via inheritance. I overwrote the MapProperties method in my class and needed to read the configuration (through Options). However, this is not accessible.
public class MySieveProcessor
{
public IOptions<SieveOptions> Options { get; private set; }
public MySieveProcessor(
IOptions<SieveOptions> options)
: base(options)
{
Options = options;
}
protected override SievePropertyMapper MapProperties(SievePropertyMapper mapper)
{
// I need to read the configuration here. However, this method gets called by the base class, meaning that I can't even
// use my own Options property because it hasn't reached that line in my constructor yet. And the base SieveProcessor
// _options member is private
}
}
The text was updated successfully, but these errors were encountered:
I had to extend the SieveProcessor class via inheritance. I overwrote the MapProperties method in my class and needed to read the configuration (through Options). However, this is not accessible.
The text was updated successfully, but these errors were encountered: