C# 클래스 Hypermedia.JsonApi.JsonApiEntityCache

상속: IJsonApiEntityCache
파일 보기 프로젝트 열기: cosullivan/Hypermedia

공개 메소드들

메소드 설명
TryAdd ( string type, string id, object value ) : bool

Attempts to add an element with the provided key and value to the T:Hypermedia.JsonApi.IJsonApiEntityCache.

TryGetValue ( string type, string id, object &value ) : bool

Attempts to get the entity from the cache.

메소드 상세

TryAdd() 공개 메소드

Attempts to add an element with the provided key and value to the T:Hypermedia.JsonApi.IJsonApiEntityCache.
public TryAdd ( string type, string id, object value ) : bool
type string The resource type of the entity that is being added.
id string The ID to assign to the entity that is being added.
value object The object to use as the value of the element to add.
리턴 bool

TryGetValue() 공개 메소드

Attempts to get the entity from the cache.
public TryGetValue ( string type, string id, object &value ) : bool
type string The resource type of the entity to find.
id string The ID of the entity to find.
value object The entity that is associated with the given type and ID, otherwise the default value is returned.
리턴 bool