I would like to be able to inject a DefaultService
object that implements IService<in T>
.
For example if I've got a constructor:
public FunClient(IDefaultService<FunModel> service) { ... }
But I don't have a FunService : IService<FunModel>
developed, I would like to be able to tell Autofac to not throw an exception, but instead resolve/inject a DefaultService
instance.