Class SvgContainer
- Namespace
- SharpVectors.IoC
- Assembly
- SharpVectors.Model.dll
Inversion of control container handles dependency injection for registered types
public sealed class SvgContainer : ISvgScope, IDisposable, IServiceProvider
- Inheritance
-
SvgContainer
- Implements
- Inherited Members
- Extension Methods
Constructors
- SvgContainer()
Creates a new instance of IoC Container
Properties
Methods
- CreateScope()
Creates a new scope
- Dispose()
Disposes any IDisposable objects owned by this container.
- GetService(Type)
Returns the object registered for the given type
- HasService(Type)
Returns a value indicating whether the object type is registered or not.
- Register(Type, Func<object>)
Registers a factory function which will be called to resolve the specified interface
- Register(Type, Type)
Registers an implementation type for the specified interface