Microsoft.AspNetCore.SignalR.Hubs.DefaultHubManager.GetHubs C# (CSharp) Method

GetHubs() public method

public GetHubs ( bool>.Func predicate ) : IEnumerable
predicate bool>.Func
return IEnumerable
        public IEnumerable<HubDescriptor> GetHubs(Func<HubDescriptor, bool> predicate)
        {
            var hubs = _hubProviders.SelectMany(p => p.GetHubs());

            if (predicate != null)
            {
                return hubs.Where(predicate);
            }

            return hubs;
        }