C# Class Microsoft.AspNetCore.SignalR.Hubs.ReflectedMethodDescriptorProvider

Inheritance: IMethodDescriptorProvider
Datei anzeigen Open project: FabianGosebrink/ASPNET-Core-Angular2-SignalR-Typescript

Public Methods

Method Description
GetMethods ( HubDescriptor hub ) : IEnumerable
ReflectedMethodDescriptorProvider ( ) : System
TryGetMethod ( HubDescriptor hub, string method, MethodDescriptor &descriptor, IList parameters ) : bool

Searches the specified hub">Hub for the specified method, the parameter set helps determine exactly which instance of the overload should be resolved. If there are multiple overloads found with the same number of matching parameters, none of the methods will be returned because it is not possible to determine which overload of the method was intended to be resolved.

Private Methods

Method Description
BuildHubExecutableMethodCacheKey ( HubDescriptor hub, string method, IList parameters ) : string
BuildMethodCacheFor ( HubDescriptor hub ) : IEnumerable>.IDictionary

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.

ExtractProgressParameter ( ParameterInfo parameters, Type &progressReportingType ) : IEnumerable
FetchMethodsFor ( HubDescriptor hub ) : IEnumerable>.IDictionary

Retrieves an existing dictionary of all available methods for a given hub from cache. If cache entry does not exist - it is created automatically by BuildMethodCacheFor.

GetMethodAttributeName ( MethodInfo method ) : string
GetMethodDescriptor ( string methodName, HubDescriptor hub, MethodInfo methodInfo ) : MethodDescriptor
GetMethodName ( MethodInfo method ) : string
IsProgressType ( ParameterInfo parameter ) : bool

Method Details

GetMethods() public method

public GetMethods ( HubDescriptor hub ) : IEnumerable
hub HubDescriptor
return IEnumerable

ReflectedMethodDescriptorProvider() public method

public ReflectedMethodDescriptorProvider ( ) : System
return System

TryGetMethod() public method

Searches the specified hub">Hub for the specified In the case that there are multiple overloads of the specified method, the parameter set helps determine exactly which instance of the overload should be resolved. If there are multiple overloads found with the same number of matching parameters, none of the methods will be returned because it is not possible to determine which overload of the method was intended to be resolved.
public TryGetMethod ( HubDescriptor hub, string method, MethodDescriptor &descriptor, IList parameters ) : bool
hub HubDescriptor Hub to search for the specified on.
method string The method name to search for.
descriptor MethodDescriptor If successful, the that was resolved.
parameters IList The set of parameters that will be used to help locate a specific overload of the specified .
return bool