Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TypeIServiceProvider = di.GetInterfaceReflectType((*IServiceProvider)(nil))
IServiceProvider reflect type
Functions ¶
func AddScopedServiceProvider ¶ added in v0.1.7
AddServiceProvider adds service to the DI container
func AddSingletonServiceProvider ¶ added in v0.1.7
AddSingletonServiceProvider adds service to the DI container
Types ¶
type IServiceProvider ¶
type IServiceProvider interface { GetByName(name string) interface{} GetByType(rt reflect.Type) interface{} GetManyByType(rt reflect.Type) []interface{} GetContainer() di.Container }
func GetScopedServiceProviderFromContainer ¶ added in v0.1.7
func GetScopedServiceProviderFromContainer(ctn di.Container) IServiceProvider
GetScopedServiceProviderFromContainer from the Container
func GetSingletonServiceProviderFromContainer ¶ added in v0.1.7
func GetSingletonServiceProviderFromContainer(ctn di.Container) IServiceProvider
GetSingletonServiceProviderFromContainer from the Container
Click to show internal directories.
Click to hide internal directories.