Shi*_*iji 8 c# performance ninject
我正在一个网站上进行代码审查,该网站将有很多同时用户,ca.100,000个经过身份验证的用
我找到了以下类型的代码:
[Inject]
public BusinessLayer.ILoginManager LoginManager { get; set; }
Run Code Online (Sandbox Code Playgroud)
在global.asax.cs中:
protected Ninject.IKernel CreateKernel()
{
return new StandardKernel(new ServiceModule());
}
internal class ServiceModule : NinjectModule
{
public override void Load()
{
Kernel.Bind<IReportProxy>().To<ReportProxy>().InRequestScope();
}
}
Run Code Online (Sandbox Code Playgroud)
问题是:Ninject的使用是否会影响性能?是否存在由于性能而不应使用Ninject的情况?
| 归档时间: |
|
| 查看次数: |
3043 次 |
| 最近记录: |