public static IEnumerable<MethodDescriptor> GetHubMethods(this IHubManager hubManager, string hubName) { if (hubManager == null) { throw new ArgumentNullException("hubManager"); } return hubManager.GetHubMethods(hubName, m => true); } }