Ejemplo n.º 1
0
        static void CreateDefault()
        {
            var container = new CreateContainer();

            container.Register <ILogger, Logger>();
            for (var n = 0; n < count; n++)
            {
                container.Resolve <ILogger>();
            }
        }
Ejemplo n.º 2
0
        static void CreateParam()
        {
            var container = new CreateContainer();

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