C# 클래스 Hypermedia.JsonApi.JsonApiEntityCacheExtensions

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

공개 메소드들

메소드 설명
TryAdd ( this cache, JsonLite.Ast.JsonObject key, object value ) : bool

Attempts to adds an entity to the T:Hypermedia.JsonApi.IJsonApiEntityCache.

TryGetValue ( this cache, JsonLite.Ast.JsonObject key, object &value ) : bool

Attempts to get the entity from the cache.

비공개 메소드들

메소드 설명
TryCreateKey ( JsonLite.Ast.JsonObject jsonObject, string &type, string &id ) : bool

Attempts to create the key components of an entity.

메소드 상세

TryAdd() 공개 정적인 메소드

Attempts to adds an entity to the T:Hypermedia.JsonApi.IJsonApiEntityCache.
public static TryAdd ( this cache, JsonLite.Ast.JsonObject key, object value ) : bool
cache this The cache to add the entity to.
key JsonLite.Ast.JsonObject The item that defines the key for the entity to add.
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 static TryGetValue ( this cache, JsonLite.Ast.JsonObject key, object &value ) : bool
cache this The cache to add the entity to.
key JsonLite.Ast.JsonObject The item that defines the key for the entity to locate.
value object The entity that is associated with the given type and ID, otherwise the default value is returned.
리턴 bool