zoukankan      html  css  js  c++  java
  • 建立MVC的依赖项注入 Setting up MVC Dependency Injection 精通ASP-NET-MVC-5-弗瑞曼

    The result of the three steps I showed you in the previous section is that the knowledge about the implementation class that should be instantiated to fulfill requests for the IValueCalculator interface has been set up in Ninject.
    结果是 三步 , 前面的部分 使用 Ninject 去 实例化 IValueCalculator接口

    Of course, I have not improved my application because that knowledge remains defined in the Home controller, meaning that the Home controller is still tightly coupled to the LinqValueCalculator class.

    当然 我没有提升我的应用是因为 Home controller 里面有定义, home controller 使用 LinqValueCalculator 类

    In the following sections, I will show you how to embed Ninject at the heart of the MVC application, which will allow me to simplify the controller, expand the influence Ninject has so that it works across the app, and move the configuration out of the controller.

    接下来部分, 将展示 怎样 嵌入 Ninject在 mvc 应用里 , 一个简单controller ,
    拓展影响 到 Ninject , 从controller里分离配置.

    翻译的烂大街哇

    晕死

  • 相关阅读:
    DBA操作规范
    MySQL高可用之MHA
    Get MySQL这5个优化技巧,你将如虎添翼
    数据库的那些事
    Kubernetes
    nginx错误分析 `104: Connection reset by peer`
    kubernets资源预留
    kubernetes Pod亲和性
    kubernetes cpu限制参数说明
    zabbix 面板graph图上没有数据显示
  • 原文地址:https://www.cnblogs.com/ganmk--jy/p/5569657.html
Copyright © 2011-2022 走看看