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
Is it possible to add an overload method for IServiceRegistry.RegisterOrdered() which allows an ordered registration with a transient lifetime?
Currently, it is possible to use the existing method, but it is confusing because you must specify a lifetime factory function. A transient lifetime class does not exist, so it's not obvious to pass a null-returning function.
My suggestion:
public IServiceRegistry RegisterOrdered(Type serviceType, Type[] implementingTypes)
{
return RegisterOrdered(serviceType, implementingTypes, type => null);
}
The text was updated successfully, but these errors were encountered:
Is it possible to add an overload method for IServiceRegistry.RegisterOrdered() which allows an ordered registration with a transient lifetime?
Currently, it is possible to use the existing method, but it is confusing because you must specify a lifetime factory function. A transient lifetime class does not exist, so it's not obvious to pass a null-returning function.
My suggestion:
The text was updated successfully, but these errors were encountered: