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);
        }
Пример #3
0
        private static string GetAdapterName(IExternalAdapter adapter)
        {
            ExternalAdapterAttribute attribute = GetAdapterAttribute(adapter);

            if (attribute == null)
            {
                return(null);
            }
            return(attribute.FriendlyName);
        }
Пример #4
0
        private static int GetAdapterPriority(IExternalAdapter adapter)
        {
            ExternalAdapterAttribute attribute = GetAdapterAttribute(adapter);

            if (attribute == null)
            {
                return(0);
            }
            return(attribute.Priority);
        }
Пример #5
0
        private static bool Exists(IExternalAdapter adapterInfo)
        {
            ExternalAdapterAttribute attribute = GetAdapterAttribute(adapterInfo);

            if (attribute == null)
            {
                return(false);
            }
            return(attribute.ProcessNames.All(p => ExistsOnPath(p)));
        }