C# Class DevMentor.Context.Store.CacheStorageStrategy

Inheritance: IStoreStrategy
ファイルを表示 Open project: pmizel/DevMentor.Context.FileContext

Public Methods

Method Description
CacheStorageStrategy ( IStoreStrategy baseStore ) : System
GetFileName ( Type type, string prefix = null ) : string
Load ( string contents, Type type ) : object
PreLoad ( Type type, string prefix = null ) : string
Save ( object o, Type type ) : string
ToDelete ( object o, Type type ) : string
ToUpdate ( object o, Type type ) : string

Method Details

CacheStorageStrategy() public method

public CacheStorageStrategy ( IStoreStrategy baseStore ) : System
baseStore IStoreStrategy
return System

GetFileName() public method

public GetFileName ( Type type, string prefix = null ) : string
type System.Type
prefix string
return string

Load() public method

public Load ( string contents, Type type ) : object
contents string
type System.Type
return object

PreLoad() public method

public PreLoad ( Type type, string prefix = null ) : string
type System.Type
prefix string
return string

Save() public method

public Save ( object o, Type type ) : string
o object
type System.Type
return string

ToDelete() public method

public ToDelete ( object o, Type type ) : string
o object
type System.Type
return string

ToUpdate() public method

public ToUpdate ( object o, Type type ) : string
o object
type System.Type
return string