Winter IoC Container

ApplicationContainer Class

Simple application container based on IServiceProvider implementation.

For a list of all members of this type, see ApplicationContainer Members.

System.Object
   System.ComponentModel.Container
      NI.Winter.ApplicationContainer

public class ApplicationContainer : Container

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Example

IComponentsConfig cfg;
IComponent someDotNetComponent;

ApplicationContainer appContainer = new ApplicationContainer();
/*inject service provider*/
appContainer.ServiceProvider = new NI.Winter.ServiceProvider( cfg  );
appContainer.Add(someDotNetComponent);
/* now someDotNetComponent 'sited' and can use iterface ISite to obtain services */

Requirements

Namespace: NI.Winter

Assembly: NI.Winter (in NI.Winter.dll)

See Also

ApplicationContainer Members | NI.Winter Namespace