You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the InstanceProducer class is non-generic. This means that it's GetInstance method returns object. This causes users to have to apply casting themselves if they use the InstanceProducer class as follows:
If the Lifestyle.CreateProducer<T> methods would return an InstanceProducer<T> instead, this would make scenarios like these much cleaner, because that would allow the user to minimize the code to the following:
Currently the
InstanceProducer
class is non-generic. This means that it'sGetInstance
method returnsobject
. This causes users to have to apply casting themselves if they use theInstanceProducer
class as follows:If the
Lifestyle.CreateProducer<T>
methods would return anInstanceProducer<T>
instead, this would make scenarios like these much cleaner, because that would allow the user to minimize the code to the following:The text was updated successfully, but these errors were encountered: