``` 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
Activity
[-]Add the idea of TryExport[/-][+]Add the idea of TryAs(Type, out bool success)[/+]ipjohnson commentedon May 28, 2017
I'm going to move this back to 6.3.0 and rethink the method to be more like Autofac
ipjohnson commentedon Jun 10, 2017
After looking at the implementation for autofac I'm going to mirror the IfNotRegistered and OnlyIf methods
adding IfNotRegistered and OnlyIf for issue #44