public override IEnumerable<string> GetNamespacesToAdd(IConnectionInfo cxInfo)
{
var bondInEtwProperties = new BondInEtwProperties(cxInfo);
IEnumerable<string> result = null;
try
{
var driverDirectory = Path.GetDirectoryName(Assembly.GetAssembly(this.GetType()).Location);
result = GetAssemblyTypes(driverDirectory)
.Concat(TypeCache.GetTypes(bondInEtwProperties.ContextName))
.Select(type => type.Namespace)
.Where(@namespace => @namespace != null)
.Concat(namespaces)
.Distinct();
}
catch
{
// Ignore
}
return result;
}