serviceprovider

package
v0.1.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddScopedServiceProvider added in v0.1.7

func AddScopedServiceProvider(builder *di.Builder)

AddServiceProvider adds service to the DI container

func AddSingletonServiceProvider added in v0.1.7

func AddSingletonServiceProvider(builder *di.Builder)

AddSingletonServiceProvider adds service to the DI container

Types

type IServiceProvider

type IServiceProvider interface {
	GetService(name string) interface{}
}

func GetScopedServiceProviderFromContainer added in v0.1.7

func GetScopedServiceProviderFromContainer(ctn di.Container) IServiceProvider

GetDIServiceProviderFromContainer from the Container

func GetSingletonServiceProviderFromContainer added in v0.1.7

func GetSingletonServiceProviderFromContainer(ctn di.Container) IServiceProvider

GetSingletonServiceProviderFromContainer from the Container

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL