Exemplo n.º 1
0
        protected override void ConfigureApplicationContainer(TinyIoCContainer container)
        {
            container.Register <IConfigSettings, ConfigSettings>();

            var feedService = new FeedService();

            var cachedService = new CachedFeedService(feedService, container.Resolve <IConfigSettings>());

            container.Register <IFeedService>(cachedService);
        }
Exemplo n.º 2
0
        protected override void ConfigureApplicationContainer(TinyIoCContainer container)
        {
            container.Register<IConfigSettings, ConfigSettings>();

            var feedService = new FeedService();

            var cachedService = new CachedFeedService(feedService, container.Resolve<IConfigSettings>());

            container.Register<IFeedService>(cachedService);
        }