PiBox is a service hosting framework that allows .net devs to decorate their services with behaviours or functionality (think of plugins) while only using minimal configuration.
[Configuration("persistence")]
public class PersistenceConfiguration
{
public SqlServerConfiguration SqlServer { get; set; }
public SmbConfiguration Smb { get; set; }
}
Current Behaviour
The webhost currently only auto registers the PeristenceConfiguration with the IoC Container bc it has the attribute, the nested config classes will not be registed automatically.
Expected Behaviour
Nested configuration classes are also automatically registered as singleton in the IoC Container.
Consider the following case
Current Behaviour The webhost currently only auto registers the PeristenceConfiguration with the IoC Container bc it has the attribute, the nested config classes will not be registed automatically.
Expected Behaviour Nested configuration classes are also automatically registered as singleton in the IoC Container.