Closed ipjohnson closed 7 years ago
bool success; c.Export(typeof(BasicService)).TryAs(typeof(IBasicService), out success);
Only exports BasicService if no other IBasicService exist.
Also need to add a TryByInterface and TryByInterfaces to ExportTypeSetConfiguration
I'm going to move this back to 6.3.0 and rethink the method to be more like Autofac
After looking at the implementation for autofac I'm going to mirror the IfNotRegistered and OnlyIf methods
Only exports BasicService if no other IBasicService exist.
Also need to add a TryByInterface and TryByInterfaces to ExportTypeSetConfiguration