C# Class Hypermedia.Metadata.ContractResolver

Inheritance: IContractResolver
ファイルを表示 Open project: cosullivan/Hypermedia

Public Methods

Method 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 method

Constructor.
public ContractResolver ( IContract contract ) : System
contract IContract The contract available to the resolver.
return System

ContractResolver() public method

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

TryResolve() public method

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.
return bool

TryResolve() public method

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.
return bool