Using microsoft’s DI we are able to inject a generic service as follows:
builder.Services.AddScoped(typeof(DBConnection<>));
this allows us to inject any DBConnection<T> without actually registering a DBConnection<T> for each T.
unfortunately I can’t find how to do it using wisej DI.
Any advise?
Best regards,
Ali
Hi Ali,
did you check out our documentation at
https://docs.wisej.com/docs/concepts/dependency-injection
Best regards
Frank
Please login first to submit.