/// <summary> /// Determines whether the specified registration has a service. /// </summary> /// <param name="registration">The registration.</param> /// <returns> /// <c>true</c> if the specified registration has service; otherwise, <c>false</c>. /// </returns> public static bool HasService(this ComponentRegistrationBase registration) { return(registration.Service != null); }
/// <summary> /// Determines whether the specified registration has a key. /// </summary> /// <param name="registration">The registration.</param> /// <returns> /// <c>true</c> if the specified registration has key; otherwise, <c>false</c>. /// </returns> public static bool HasName(this ComponentRegistrationBase registration) { return(!string.IsNullOrEmpty(registration.Name)); }