C# Класс Pomona.Common.Internals.ClientTypeResolverExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetMostInheritedResourceInterfaceInfo ( this client, Type sourceType ) : ResourceInfoAttribute

Описание методов

GetMostInheritedResourceInterface() публичный статический Метод

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.
Результат System.Type

GetResourceInfoForType() публичный статический Метод

public static GetResourceInfoForType ( this client, Type type ) : ResourceInfoAttribute
client this
type System.Type
Результат ResourceInfoAttribute