private static Container defaultContainer()
{
return new Container(ioc =>
{
var dynamicProxy = new ProxyGenerator();
ioc.For<IMyService>()
.DecorateAllWith(myService =>
dynamicProxy.CreateInterfaceProxyWithTarget(myService, new CacheInterceptor()))
.Use<MyService>();
});
}