mirror of https://github.com/AMT-Cheif/Stylet.git
Minor fix
This commit is contained in:
parent
cf9f0857a9
commit
7fc2be3ed0
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue