Skip to content
Suremaker edited this page Dec 11, 2012 · 3 revisions

The Spring.FluentContext introduces a new implementation of IApplicationContext interface named FluentApplicationContext and small extension methods to IApplicationContext for getting objects from context.

Quick Start with Spring.FluentContext

The simplest usage of context is as follows:

var ctx = new FluentApplicationContext();

ctx.RegisterDefault<Cat>();

var cat = ctx.GetObject<Cat>();

It presents the registration of Cat class in context and instantiation it by using extension method.

To see working examples, please check Spring.FluentContext.Examples

Continue reading: 2. Object configuration steps