Revision 4d70073b trunk/Pithos.Client.WPF/AppBootstrapper.cs
b/trunk/Pithos.Client.WPF/AppBootstrapper.cs | ||
---|---|---|
78 | 78 |
string contract = string.IsNullOrEmpty(key) ? AttributedModelServices.GetContractName(serviceType) : key; |
79 | 79 |
var exports = container.GetExportedValues<object>(contract); |
80 | 80 |
|
81 |
if (exports.Count() > 0)
|
|
81 |
if (exports.Any())
|
|
82 | 82 |
return exports.First(); |
83 | 83 |
|
84 | 84 |
throw new Exception(string.Format("Could not locate any instances of contract {0}.", contract)); |
Also available in: Unified diff