C# Class Hypermedia.Metadata.ContractResolver

Inheritance: IContractResolver
Afficher le fichier Open project: cosullivan/Hypermedia

Méthodes publiques

Méthode Description
ContractResolver ( IContract contract ) : System

Constructor.

ContractResolver ( IEnumerable contracts ) : System

Constructor.

TryResolve ( Type type, IContract &contract ) : bool

Attempt to resolve the resource contract from a CLR type.

TryResolve ( string name, IContract &contract ) : bool

Attempt to resolve the resource contract from a resource type name.

Method Details

ContractResolver() public méthode

Constructor.
public ContractResolver ( IContract contract ) : System
contract IContract The contract available to the resolver.
Résultat System

ContractResolver() public méthode

Constructor.
public ContractResolver ( IEnumerable contracts ) : System
contracts IEnumerable The list of contracts available to the resolver.
Résultat System

TryResolve() public méthode

Attempt to resolve the resource contract from a CLR type.
public TryResolve ( Type type, IContract &contract ) : bool
type System.Type The CLR type of the resource contract to resolve.
contract IContract The resource contract that was associated with the given CLR type.
Résultat bool

TryResolve() public méthode

Attempt to resolve the resource contract from a resource type name.
public TryResolve ( string name, IContract &contract ) : bool
name string The resource type name of the resource contract to resolve.
contract IContract The resource contract that was associated with the given resource type name.
Résultat bool