Exemple #1
0
        static void InvokeParam()
        {
            var container = new InvokeContainer();

            container.Register <ILogger, Logger>();
            container.Register <IEmailService, EmailService>();
            container.Register <IEmailClient, EmailClient>();
            for (var n = 0; n < count; n++)
            {
                container.Resolve <IEmailClient>();
            }
        }
Exemple #2
0
        static void InvokeDefault()
        {
            var container = new InvokeContainer();

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