Skip to content

Commit

Permalink
prototype is create a new instance on each call.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyofx committed Jul 22, 2021
1 parent 86d3531 commit a737e22
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 a737e22

Please sign in to comment.