//service Bindingleri private void AddServiceBindings() { //olurda biri senden IProductService isterse _ninjectKernel.Bind <IProductService>().ToConstant(WcfProxy <IProductService> .CreateChannel()); _ninjectKernel.Bind <ICategoryService>().ToConstant(WcfProxy <ICategoryService> .CreateChannel()); _ninjectKernel.Bind <IAuthenticationService>().ToConstant(WcfProxy <IAuthenticationService> .CreateChannel()); }
public void AddServiceBindings() { //Eğer biri senden IProductService isterse ona, //WcfProxy'e git, parametre olarak IProductService ver onun da CreateChannel'ını çalıştır _ninjectKernel.Bind <IProductService>().ToConstant(WcfProxy <IProductService> .CreateChannel()); _ninjectKernel.Bind <ICategoryService>().ToConstant(WcfProxy <ICategoryService> .CreateChannel()); _ninjectKernel.Bind <IAuthenticationService>().ToConstant(WcfProxy <IAuthenticationService> .CreateChannel()); _ninjectKernel.Bind <ICustomerService>().ToConstant(WcfProxy <ICustomerService> .CreateChannel()); _ninjectKernel.Bind <IAccountService>().ToConstant(WcfProxy <IAccountService> .CreateChannel()); _ninjectKernel.Bind <IOrderService>().ToConstant(WcfProxy <IOrderService> .CreateChannel()); _ninjectKernel.Bind <IOrderDetailService>().ToConstant(WcfProxy <IOrderDetailService> .CreateChannel()); }
private void AddServiceBinding() { kernal.Bind <IProductService>().ToConstant(WcfProxy <IProductService> .CreateChannel()); kernal.Bind <ICategoryService>().ToConstant(WcfProxy <ICategoryService> .CreateChannel()); kernal.Bind <IAuthenticationService>().ToConstant(WcfProxy <IAuthenticationService> .CreateChannel()); }