Minor fix

This commit is contained in:
Antony Male 2014-02-11 22:29:45 +00:00
parent cf9f0857a9
commit 7fc2be3ed0
1 changed files with 8 additions and 1 deletions

View File

@ -70,7 +70,14 @@ namespace Stylet
foreach (var candidate in candidates)
{
this.Bind(candidate.Base).To(candidate.Type);
try
{
this.Bind(candidate.Base).To(candidate.Type);
}
catch (StyletIoCRegistrationException e)
{
Debug.WriteLine(String.Format("Unable to auto-bind type {0}: {1}", cls.Name, e.Message), "StyletIoC");
}
}
}