Source/NFX/ApplicationModel/ApplicationComponent.cs
/// <summary>
/// Looks-up an existing application component instance by its ComponentCommonName or null. The search is case-insensitive
/// </summary>
Looks-up an existing application component instance by its ComponentCommonName or null. The search is case-insensitive
Looks - up an existing application component instance by its ComponentCommonName or null . The search is case - insensitive
public static ApplicationComponent GetAppComponentByCommonName(string name)
          {
            if (name.IsNullOrWhiteSpace()) return null;
            name = name.Trim();
            ApplicationComponent result;
            lock(s_Instances)
             result = s_Instances.Values.FirstOrDefault( c => c.ComponentCommonName!=null && name.EqualsIgnoreCase(c.ComponentCommonName.Trim()));
            return result;
          }
public static ApplicationComponent GetAppComponentByCommonName ( string name ) { if ( name . IsNullOrWhiteSpace ( ) ) return null ; name = name . Trim ( ) ; ApplicationComponent result ; lock ( s_Instances ) result = s_Instances . Values . FirstOrDefault ( c => c . ComponentCommonName != null && name . EqualsIgnoreCase ( c . ComponentCommonName . Trim ( ) ) ) ; return result ; }
Looks-up an existing application component instance by its ComponentCommonName or null.
Looks - up an existing application component instance by its ComponentCommonName or null .
name
string