Hello,
I’ve got a strange problem during a deploy in a production enviorment… I got an exception in a class telling that it was unable to resolve ICacheClient (which was correctly registered)
I’ve replaced in my class
public sealed class ModuleResolver : IModuleResolver
{
//readonly ICacheClient _appSettingsCache = HostContext.Resolve<ICacheClient>();
...
}
with
readonly ICacheClient _appSettingsCache = ServiceStackHost.Instance.Resolve<ICacheClient>();
And it works… the ICacheClient was registered inside AppHost.cs Configure using the passed container
Thanks in advance
Paolo