I created the ASP.Net vNext Web API.
I have successfully used dependency induction with a simple interface such as:
services.AddScoped<ILinearRegressionCalculator, LinearRegressionCalculator>();
However, I cannot figure out how to make a dependency using a universal interface.
How to configure dependency injection for this interface:
public interface IMongoConnectionHandler<T> where T : IMongoEntity
generics c # dependency-injection asp.net-core
jkruer01
source share