internal static string GetHubName(this Type type) { if (!typeof(IHub).GetTypeInfo().IsAssignableFrom(type.GetTypeInfo())) { return null; } return GetHubAttributeName(type) ?? GetHubTypeName(type); }