Skip to content

Commit

Permalink
Merge pull request #3 from yoyofxteam/dev
Browse files Browse the repository at this point in the history
prototype is create a new instance on each call.
  • Loading branch information
yoyofx authored Jul 22, 2021
2 parents 6ce7509 + a737e22 commit 1db7215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion default_serviceprovider_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func (sc ServiceCollection) Build() IServiceProvider {
}
//prototype is create a new instance on each call.
if desc.Lifetime != Singleton {
//providerOptions = append(providerOptions)
providerOptions = append(providerOptions, Prototype())
}

provider := Provide(desc.Provider, providerOptions...)
Expand Down

0 comments on commit 1db7215

Please sign in to comment.