Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のautofacコードに相当するNinjectは何ですか:
builder.RegisterType<WebWorkContext>().As<IWorkContext>().InstancePerHttpRequest();
基本的に、アプリケーション内の特定のユーザーの現在の作業言語、ユーザー名、通貨形式などの設定を共有したいと考えています。
ninject カーネルへのバインド (例: global.asax)
global.asax
kernel.Bind<IWorkContext>().To<WebWorkContext>().InRequestScope();