C# Class Pomona.Common.Internals.ClientTypeResolverExtensions

Afficher le fichier Open project: Pomona/Pomona

Méthodes publiques

Méthode Description
GetMostInheritedResourceInterface ( this client, Type sourceType ) : Type

This function gets the most subtyped server-known interface implemented by given type. For example lets take a type hierarchy where we got entities IBase and IEntity, where IEntity inherits from IBase. Then we got some other type like ICustomCrazyType that inherits from IEntity. When given this type this function will return IEntity type.

GetResourceInfoForType ( this client, Type type ) : ResourceInfoAttribute

Private Methods

Méthode Description
GetMostInheritedResourceInterfaceInfo ( this client, Type sourceType ) : ResourceInfoAttribute

Method Details

GetMostInheritedResourceInterface() public static méthode

This function gets the most subtyped server-known interface implemented by given type. For example lets take a type hierarchy where we got entities IBase and IEntity, where IEntity inherits from IBase. Then we got some other type like ICustomCrazyType that inherits from IEntity. When given this type this function will return IEntity type.
public static GetMostInheritedResourceInterface ( this client, Type sourceType ) : Type
client this Client responsible for resolving type. TODO: Might put this in its own interface.
sourceType System.Type Type to find resource interface on.
Résultat System.Type

GetResourceInfoForType() public static méthode

public static GetResourceInfoForType ( this client, Type type ) : ResourceInfoAttribute
client this
type System.Type
Résultat ResourceInfoAttribute