Open mcdis opened 2 years ago
Dear Johnson!
Can you tell me if I can export the generic interface given the constraints?
Example:
_.Export(typeof(ConfProvider<>)).As(typeof(IObservable<>).WithConstaints<IMsg>.Lifestyle.Singleton()
I want to bind IObservable<T> where IMsg to ConfProvider<T>
IObservable<T> where IMsg
ConfProvider<T>
Hi @mcdis,
You should be able to do When.MeetsCondition((strategy, staticContext) => /* inspect T using reflection here */)
When.MeetsCondition((strategy, staticContext) => /* inspect T using reflection here */)
Dear Johnson!
Can you tell me if I can export the generic interface given the constraints?
Example:
I want to bind
IObservable<T> where IMsg
toConfProvider<T>