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>(); } }
static void InvokeDefault() { var container = new InvokeContainer(); container.Register <ILogger, Logger>(); for (var n = 0; n < count; n++) { container.Resolve <ILogger>(); } }