Unity Application Block and ASP. NET MVC

Source: Internet
Author: User

Inversion of control (IOC) and dependency injection (DI) are my solutions to ASP. net MVC has been noticed after, and is very fascinated by its concept, but since there are very few Chinese Resources and the concepts are also a little abstract, so zookeeper is not ready for use. Last year, I spent a lot of time researching related resources and started to use the code library in ASP. in the case of net MVC, I am also a little experienced. I would like to sort out some articles and materials that I have read to help those who are interested in learning.

The Unity Application Block is a part of multiple application blocks in the micro-engine Enterprise Library. It is injection into the dependency injection container and supports constructor, property, and method call injection, at present, there are a lot of statements about Di, but the file resources of microservices are rich, so I use unity as a learning kit.

Since di (IOC) is a design pattern, it will not be too difficult to switch between different di frameworks in the future, because the concepts are the same, as long as you can understand the basic concepts of operation and be familiar with at least one set of di framework, there will be no major issues.DependenciesFor your tests.

The following are the resources I have developed, or may be helpful to those who want to learn unity/DI/IOC:

Concept Creation

  • Inversion of control-Wikipedia, the free encyclopedia/control Inversion
  • Dependency injection-Wikipedia, the free encyclopedia
  • Inversion of control containers and the dependency injection pattern
    • The author of this article is Martin Fowler (it should be the first person to come up with this word)
  • Introduction to unity
  • Dependency injection [msdn magazine, 2005-09]

 

Elementary School

  • Unity dependency injection IOC screencast)

    • Unity IOC and ASP. net mvc Framework-dependency injection of controllers
    • Unity nested containers-iunitycontainer and createchildcontainer
    • Unitycontainer and unityconfigurationsection-populating unity container via app. config or web. config
    • Unity configuration from separate configuration file
  • Unity Framework with ASP. net mvc Framework)
  • ASP. net mvc tip: dependency injection with unity Application Block)

 

Official Website

  • Unity Application Block (msdn)
  • Patterns & Practices-Unity (codeplex)

 

Related regions

  • Next release unity Application Block 1.2-October 2008 (current release version)

    • Set the security item to c: \ Program Files \ microsoft unity Application Block 1.2
    • Including CHM description files, Quick Start component routines, Unity's complete original component, and zookeeper Components
  • The following example unity Application Block 1.2 documentation for Visual Studio 2008
  • The following example unity Application Block 1.2 documentation for Visual Studio 2005
  • Lower-level unity Application Block 1.2 for Silverlight-December 2008

 

Routine

  • Unity Application Block (1.2) Hands on labs)
  • Lekker (MVC website for managing food producers)
    • Technical tips: ASP. net mvc,Unity, Entity Framework,Vs2008
  • P-blog (blog engine)
    • Technical tips: ASP. net mvc, nhib.pdf, Firebird,Unity/Spring. Net IOC, nunit
  • Kigg)
    • TIPS: ASP. net mvc, jquery,Unity, LINQ to SQL or Entity Framework,
      Enterprise Library (Logging & caching), xunit.net ,... A lot...
  • Shrinkr)
    • TIPS: ASP. net mvc, jquery,Unity, Entity Framework4.0, Jquery,Vs2010
    • Shrinkr-URL shrinking Service developed with Entity Framework 4.0, unity, ASP. net mvc and jquery (Part 1)
    • Shrinkr-URL shrinking Service developed with Entity Framework 4.0, unity, ASP. net mvc and jquery (Part 2)
    • Shrinkr-URL shrinking Service developed with Entity Framework 4.0, unity, ASP. net mvc and jquery (part 3)

 

Related Articles

  • Inject some life into your applications-getting to know the unity Application Block

    • In this article, the example code is unitygettingstartedcode.zip.
    • Tame your software dependencies for more flexible apps [msdn magazine, 2008-03]
  • Applying dependency injection in ASP. net mvc nerddinner.com Application
  • ASP. net mvc, unity and common service locator
  • How to Use unity container in ASP. NET
  • How to Use unity container in ASP. net mvc Framework

 

Blog

  • Patterns and practices guidance-Unity
  • Unity-Kazi manzur Rashid's blog
  • Brad Wilson
  • Being Scott Densmore-Unity
  • I think it's interesting-dependency Injection
  • Martin Fowler's bliki

 

Dependencies

  • Comparing. Net di (IOC) frameworks, part 1
  • Comparing. Net di (IOC) frameworks, part 2
  • List of. Net dependency injection containers (IOC)
  • Which single IOC/di container wocould you recommend using and why?
  • Which dependency injection tool shocould I use?
  • IOC container benchmark-Unity, Windsor, structuremap and spring. net

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.