C# Class TerrificNet.ViewEngine.ModelProviders.JsonModelProvider

Inheritance: IModelProvider
ファイルを表示 Open project: namics/TerrificNet

Public Methods

Method Description
GetDataVariations ( ModuleDefinition moduleDefinition ) : IEnumerable
GetDefaultModelForTemplateAsync ( TemplateInfo template ) : Task
GetModelForModuleAsync ( ModuleDefinition moduleDefinition, string dataId ) : Task
GetModelForTemplateAsync ( TemplateInfo template, string dataId ) : Task
JsonModelProvider ( IFileSystem fileSystem ) : System.Collections.Generic
UpdateDefaultModelForTemplateAsync ( TemplateInfo template, object content ) : System.Threading.Tasks.Task
UpdateModelForModuleAsync ( ModuleDefinition moduleDefinition, string dataId, object content ) : System.Threading.Tasks.Task

Private Methods

Method Description
GetModelFromPathAsync ( PathInfo filePath ) : Task
GetPath ( ModuleDefinition moduleDefinition, PathInfo dataId ) : PathInfo
GetPath ( TemplateInfo templateInfo, PathInfo id ) : PathInfo
Update ( object content, PathInfo filePath ) : System.Threading.Tasks.Task

Method Details

GetDataVariations() public method

public GetDataVariations ( ModuleDefinition moduleDefinition ) : IEnumerable
moduleDefinition ModuleDefinition
return IEnumerable

GetDefaultModelForTemplateAsync() public method

public GetDefaultModelForTemplateAsync ( TemplateInfo template ) : Task
template TemplateInfo
return Task

GetModelForModuleAsync() public method

public GetModelForModuleAsync ( ModuleDefinition moduleDefinition, string dataId ) : Task
moduleDefinition ModuleDefinition
dataId string
return Task

GetModelForTemplateAsync() public method

public GetModelForTemplateAsync ( TemplateInfo template, string dataId ) : Task
template TemplateInfo
dataId string
return Task

JsonModelProvider() public method

public JsonModelProvider ( IFileSystem fileSystem ) : System.Collections.Generic
fileSystem IFileSystem
return System.Collections.Generic

UpdateDefaultModelForTemplateAsync() public method

public UpdateDefaultModelForTemplateAsync ( TemplateInfo template, object content ) : System.Threading.Tasks.Task
template TemplateInfo
content object
return System.Threading.Tasks.Task

UpdateModelForModuleAsync() public method

public UpdateModelForModuleAsync ( ModuleDefinition moduleDefinition, string dataId, object content ) : System.Threading.Tasks.Task
moduleDefinition ModuleDefinition
dataId string
content object
return System.Threading.Tasks.Task