我的控制器类
IPaymentProcessor _paymentProcessor = ObjectFactory.Container.GetInstance<IPaymentProcessor>("cert5");
我的国际奥委会课
x.For<IX509Cert>().Use<X509Cert>().Ctor<string>().Is(Settings.GetCreditCardCertFile(5)).Named("cert5");
我的控制器类
IPaymentProcessor _paymentProcessor = ObjectFactory.Container.GetInstance<IPaymentProcessor>("cert5");
我的国际奥委会课
x.For<IX509Cert>().Use<X509Cert>().Ctor<string>().Is(Settings.GetCreditCardCertFile(5)).Named("cert5");