Microsoft.AspNetCore.SignalR.Hubs.ReflectedMethodDescriptorProvider.BuildMethodCacheFor C# (CSharp) Method

BuildMethodCacheFor() private static method

Builds a dictionary of all possible methods on a given hub. Single entry contains a collection of available overloads for a given method name (key). This dictionary is being cached afterwards.
private static BuildMethodCacheFor ( HubDescriptor hub ) : IEnumerable>.IDictionary
hub HubDescriptor Hub to build cache for
return IEnumerable>.IDictionary
        private static IDictionary<string, IEnumerable<MethodDescriptor>> BuildMethodCacheFor(HubDescriptor hub)
        {
            return ReflectionHelper.GetExportedHubMethods(hub.HubType)
                .GroupBy(GetMethodName, StringComparer.OrdinalIgnoreCase)
                .ToDictionary(group => group.Key,
                              group => group.Select(oload => GetMethodDescriptor(group.Key, hub, oload)),
                              StringComparer.OrdinalIgnoreCase);
        }