Description
It would be really cool if we could do
public class Dependant([FromKeyedServices("small")] IMemoryCache small, [FromKeyedServices("big")] IMemoryCache big);
instead of having to do:
public class Dependant(IServiceProvider sp)
{
private IMemoryCache small = sp.GetRequiredKeyedService<IMemoryCache>("small");
private IMemoryCache big = sp.GetRequiredKeyedService<IMemoryCache>("big");
}
Specify the libraries you want this feature request to affect
DSharpPlus.Commands
Other considerations
No response
Reactions are currently unavailable
Description
It would be really cool if we could do
instead of having to do:
Specify the libraries you want this feature request to affect
DSharpPlus.Commands
Other considerations
No response