Interface IKernel
A super-factory that can create objects of all kinds, following hints provided by IBindings.
Inherited Members
Namespace: Telerik.JustMock.AutoMock.Ninject
Assembly: Telerik.JustMock.dll
Syntax
public interface IKernel : IBindingRoot, IResolutionRoot, IFluentSyntax, IServiceProvider, INotifyWhenDisposed, IDisposableObject, IDisposable
Properties
Components
Gets the component container, which holds components that contribute to Ninject.
Declaration
IComponentContainer Components { get; }
Property Value
IComponentContainer
|
Settings
Gets the kernel settings.
Declaration
INinjectSettings Settings { get; }
Property Value
INinjectSettings
|
Methods
BeginBlock()
Begins a new activation block, which can be used to deterministically dispose resolved instances.
Declaration
IActivationBlock BeginBlock()
Returns
IActivationBlock
The new activation block. |
GetBindings(Type)
Gets the bindings registered for the specified service.
Declaration
IEnumerable<IBinding> GetBindings(Type service)
Parameters
System.Type
service
The service in question. |
Returns
System.Collections.Generic.IEnumerable<IBinding>
A series of bindings that are registered for the service. |
GetModules()
Gets the modules that have been loaded into the kernel.
Declaration
IEnumerable<INinjectModule> GetModules()
Returns
System.Collections.Generic.IEnumerable<INinjectModule>
A series of loaded modules. |
HasModule(String)
Determines whether a module with the specified name has been loaded in the kernel.
Declaration
bool HasModule(string name)
Parameters
System.String
name
The name of the module. |
Returns
System.Boolean
|
Load(IEnumerable<Assembly>)
Loads modules defined in the specified assemblies.
Declaration
void Load(IEnumerable<Assembly> assemblies)
Parameters
System.Collections.Generic.IEnumerable<System.Reflection.Assembly>
assemblies
The assemblies to search. |
Load(IEnumerable<String>)
Loads modules from the files that match the specified pattern(s).
Declaration
void Load(IEnumerable<string> filePatterns)
Parameters
System.Collections.Generic.IEnumerable<System.String>
filePatterns
The file patterns (i.e. ".dll", "modules/.rb") to match. |
Load(IEnumerable<INinjectModule>)
Loads the module(s) into the kernel.
Declaration
void Load(IEnumerable<INinjectModule> m)
Parameters
System.Collections.Generic.IEnumerable<INinjectModule>
m
The modules to load. |
Unload(String)
Unloads the plugin with the specified name.
Declaration
void Unload(string name)
Parameters
System.String
name
The plugin's name. |