I have a contract(interface) called INotifier and implmented it in two classes SMSNotifier and EmailNotifier. Now i want to inject these two implementations as an array of dependencies to INotifier[].
like this
private readonly INotifier[] _notifiers;
public AccountController(INotifier[] notifiers)
{
_notifiers=notifiers;
}
How can i add dependency for this scenario in ServiceCollection (Startup Class);