On 8 Giu, 14:17, Simone <
laserp...@gmail.com> wrote:
> To my knowledge, it should work properly, but as you can see, it
> raises an exception. What could be the problem? Is there a workaround?
>
I found a workaround, but not something I'd like to see in production
code.
class LnsClientConfigWrapper: ILnsClientConfig {
LnsClientConfigWrapper(ILnsClientConfig config) {
_config = config;
}
/// implement ILnsClientConfig's methods forwarding'em to _config
readonly ILnsClientConfig _config;
}
then:
var channel = new
LnsClientChannelManager(lnsModuleConfiguration);
container.Configure(
config => config.For<ILnsClientConfig>().Use(new
LnsClientConfigWrapper(channel.ConfigService))
);