Exemplo n.º 1
0
        static void CachedParam()
        {
            var container = new CachedContainer();

            container.Register <ILogger, Logger>();
            container.Register <IEmailService, EmailService>();
            container.Register <IEmailClient, EmailClient>();
            for (var n = 0; n < count; n++)
            {
                container.Resolve <IEmailClient>();
            }
        }
Exemplo n.º 2
0
        static void CachedDefault()
        {
            var container = new CachedContainer();

            container.Register <ILogger, Logger>();
            for (var n = 0; n < count; n++)
            {
                container.Resolve <ILogger>();
            }
        }