Microsoft.AspNetCore.SignalR.Hubs.HubTypeExtensions.GetHubAttributeName C# (CSharp) 메소드

GetHubAttributeName() 정적인 개인적인 메소드

static private GetHubAttributeName ( this type ) : string
type this
리턴 string
        internal static string GetHubAttributeName(this Type type)
        {
            if (!typeof(IHub).GetTypeInfo().IsAssignableFrom(type.GetTypeInfo()))
            {
                return null;
            }

            // We can still return null if there is no attribute name
            return ReflectionHelper.GetAttributeValue<HubNameAttribute, string>(type.GetTypeInfo(), attr => attr.HubName);
        }