I've setup DI in my Azure Function by using Microsoft.Azure.Functions.Extensions.DependencyInjection
and Microsoft.Extensions.DependencyInjection
. So this is my startup:
public class Startup : FunctionsStartup
{
public override void Configure(IFunctionsHostBuilder builder)
{
builder.Services.AddTransient<IThingFactory, ThingFactory>();
}
}
This works fine within the project however I have added a reference to SomeOtherProject.dll
(One of my class library projects).
My question is: do i need to setup services for each of the interfaces & implementations from SomeOtherProject
that i'll be using?