How to register an instance in congif file
I am having this code
UnityContainer.RegisterInstance<ICache>(new CacheMng(HttpRuntime.Cache));
And trying to have the equivalent in a config file
<register type="ICache" mapTo="CacheMng">
<lifetime type="Singleton"/>
<constructor>
<param name="cache" type="System.Web.Caching" value="HttpRuntime.Cache"/>
</constructor>>
</register>
My CacheMng class has this contructor
public CacheMng(Cache cache)
{
this._cache = cache
}
I'm getting this error
The type name or alias System.Web.Caching could not be resolved