private static bool Exists(IExternalAdapter adapterInfo) { ExternalAdapterAttribute attribute = adapterInfo.GetType().GetCustomAttributes(typeof(ExternalAdapterAttribute), false).FirstOrDefault() as ExternalAdapterAttribute; if (attribute == null) { return(false); } return(attribute.ProcessNames.All(p => ExistsOnPath(p))); }
private static string GetAdapterName(IExternalAdapter adapter) { ExternalAdapterAttribute attribute = adapter.GetType().GetCustomAttributes(typeof(ExternalAdapterAttribute), false).FirstOrDefault() as ExternalAdapterAttribute; if (attribute == null) { return(null); } return(attribute.FriendlyName); }
private static string GetAdapterName(IExternalAdapter adapter) { ExternalAdapterAttribute attribute = GetAdapterAttribute(adapter); if (attribute == null) { return(null); } return(attribute.FriendlyName); }
private static int GetAdapterPriority(IExternalAdapter adapter) { ExternalAdapterAttribute attribute = GetAdapterAttribute(adapter); if (attribute == null) { return(0); } return(attribute.Priority); }
private static bool Exists(IExternalAdapter adapterInfo) { ExternalAdapterAttribute attribute = GetAdapterAttribute(adapterInfo); if (attribute == null) { return(false); } return(attribute.ProcessNames.All(p => ExistsOnPath(p))); }