AOP02.Core.SmObjectFactory.defaultContainer C# (CSharp) Method

defaultContainer() private static method

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