C# Class Deveel.Data.Services.ServiceContainer

Inheritance: IScope, IServiceProvider
显示文件 Open project: deveel/deveeldb Class Usage Examples

Private Properties

Property Type Description
IServiceProvider object
ServiceContainer System

Public Methods

Method Description
Dispose ( ) : void
IsRegistered ( Type serviceType, object serviceKey ) : bool
OpenScope ( string name ) : IScope
Register ( ServiceRegistration registration ) : void
Resolve ( Type serviceType, object name ) : object
ResolveAll ( Type serviceType ) : IEnumerable
ServiceContainer ( ) : System
Unregister ( Type serviceType, object serviceName ) : bool

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
IServiceProvider ( Type serviceType ) : object
ServiceContainer ( ServiceContainer parent, string scopeName ) : System

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

IsRegistered() public method

public IsRegistered ( Type serviceType, object serviceKey ) : bool
serviceType System.Type
serviceKey object
return bool

OpenScope() public method

public OpenScope ( string name ) : IScope
name string
return IScope

Register() public method

public Register ( ServiceRegistration registration ) : void
registration ServiceRegistration
return void

Resolve() public method

public Resolve ( Type serviceType, object name ) : object
serviceType System.Type
name object
return object

ResolveAll() public method

public ResolveAll ( Type serviceType ) : IEnumerable
serviceType System.Type
return IEnumerable

ServiceContainer() public method

public ServiceContainer ( ) : System
return System

Unregister() public method

public Unregister ( Type serviceType, object serviceName ) : bool
serviceType System.Type
serviceName object
return bool