66366 members! Sign up to stay informed.

Sponsored Links


Resources

.NET Research Library
Get .NET related white papers, case studies and webcasts

News News News Messages: 3 Messages: 3 Messages: 3 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

Dependency Injection and Dynamic Service Locators in .NET

Posted by: Nitin Bharti on July 16, 2004 DIGG
Daniel Cazzulino analyzes Fowler's article, 'Inversion of Control Containers and the Dependency Injection pattern', that implies that lightweight containers are a new concept fuelled by the Java community unsatisfied with heavyweight EJB containers. Daniel points out that .NET supported and heavily used this approach since its very early bits, released back in PDC'00.

Read Lightweight Containers and Plugin Architectures: Dependency Injection and Dynamic Service Locators in .NET
  Message #130594 Post reply Post reply Post reply Go to top Go to top Go to top

Dependency Injection and Dynamic Service Locators in .NET

Posted by: Mehul Patel on July 18, 2004 in response to Message #130417
So, once more, we can see that .NET is the pioneer on supposedly "new" patterns. It's true that this pattern (and many others found throughout the .NET Framework) don't have enough advertising, and that may be the cause for their scarse use in .NET application architectures.

I have to agree with .Net patterns are not as popular as we want to be -- for example light weight containers are mainly part of framework it self. Extending it (Using it) - is required in cases like WSS/SPS Object model for share point, and if MS comes up implementing pure versions of MSMQ,COM+ (as JMS+EJB in J2ee containers), only then it will come to surface, at least on server side.

As far as client side goes, MS has it in .Net framework. I can see it being useful in something like Rule Engine.

Just My ideas !
Mehul.

  Message #131479 Post reply Post reply Post reply Go to top Go to top Go to top

Perhaps lightweight, but not Inversion of Control

Posted by: Joe Parks on July 23, 2004 in response to Message #130594
I don't see the inversion of control here. It sounds like a good infrastructure to provide service lookup within an application, but I thought that the whole point of IoC was to avoid lookups from the client. That the service configuration control would delegated ("reverted") to the container?

  Message #134789 Post reply Post reply Post reply Go to top Go to top Go to top

How do clients get access to services.

Posted by: Craig Neuwirt on August 19, 2004 in response to Message #130417
I really enjoyed this article. I was wondering how the client would use the container to access services. Assuming I have a configured container, how can I access the services. The IContainer.GetService() is protected. Is it the assumption that Container implementors need to provide an interface for this explicitly (e.g. Implement IServiceProvider directory)

thanks,
  craig

 
New content on TheServerSide.NETNew content on TheServerSide.NETNew content on TheServerSide.NET

DSLs and language interop

Language "mashups" will become more prominent, and developers will become polyglots, one programmer suggests.

VS 2008 Resources

SearchWinDevelopment.com offers an introduction to the language, performance, testing and data management improvements in VS 2008.

VB code downloads home

VBCode.com code snippets cover all aspects of application development, from data binding to security to the user interface.

XAML Learning Guide

Get up to date on XAML best practices with a variety of articles, tutorials and webcasts. [SearchWinDevelopment.com]

Company uses VSTS DB edition to tame workflow

One team's experience with the VSTS DB edition suggests that it can improve workflow for dev teams. It also enhanced Agile efforts. (June 24, Article)

Book: Intro to DSL Tools

Microsoft has begun to include DSL tools in the VSTS kit. A new book by Steve Cook and other VSTS team members helps set the stage. (June 24, Article)

I See the Silverlight Shining!

Cartoon: Be it ever so humble there is no place like your home after you get a Microsoft Home Server . (June 18, Cartoon)

A look at .NET 3.5

Microsoft's Thom Robbins says new technology to highlight in NET 3.5 includes AJAX, LINQ for both C# and VB, as well as tooling enhancements intended to ease the task of building WPF, WF and WCF apps. (June 29, Podcast)

Venkat Subramaniam on AJAX

Venkat Subramaniam discusses AJAX bottlenecks, the tenets of Agile development and more. He spoke at the Ajax Experience. (June 25, Tech Talk)

Building a Claims-Based Security Model in WCF - Part 2

In the second of a two-part series, Michele Leroux Bustamente discusses design decisions related to the claims-based security model. Read the story and walk through the process for creating a set of claims-based utilities to encapsulate claims authorization at the service tier. (May 24, Article)

Introducing the Entity Framework

Understanding why the Entity Framework exists and learning where it can fit into your projects can get you prepared for the eventual release early next year. (May 10, Article)

WCF Security Learning Guide

Resource: This learning guide gives you quick access to useful links on Windows Communication Foundation security information. (April 24, Article)

Brad Abrams: Patterns for successful ASP.NET AJAX development

TSS.NET's Jack Vaughan spoke recently spoke with Microsoft's Brad Abrams to find out what he is seeing in the field and what the chefs in Redmond are cooking. Along the way he discusses patterns of AJAX frameworks. (April 11, Article)

Building a Claims-Based Security Model in WCF

In a two-part series, Michele Leroux Bustamente explains how claims-based security is supported by WCF, and how you can implement a claims-based security model for your services. (March 29, Article)

Authoring workflow using XAML

Windows Workflow Foundation is a new technology that many developers will need to get their heads around. In a brief excerpt adapted from Programming Windows Workflow Foundation: Practical WF Techniques and Examples using XAML and C#, K.Scott Allen considers aspects of workflow definition. (March 22, Chapter Excerpt)

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
All Content Copyright ©2007 TheServerSide Privacy Policy
Site Map