Winter IoC Container

ServiceProvider Class

Service provider based on Spring-like configuration.

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

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         NI.Winter.ServiceProvider
            NI.Winter.NestedServiceProvider

[DesignerCategory(Category="Component")]
public class ServiceProvider : Component, IServiceProvider, INamedServiceProvider, IObjectProvider

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.

Remarks

This component takes care about objects initialization, creation, referencing etc. Fully integrated with System.ComponentModel:

Example

IComponentsConfig cfg;
ServiceProvider srvProv = new ServiceProvider(cfg);
object someService = srvProv.GetObject("someServiceName");

Requirements

Namespace: NI.Winter

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

See Also

ServiceProvider Members | NI.Winter Namespace