C# Class TerrificNet.Controllers.TerrificViewDefinitionRepository

显示文件 Open project: namics/TerrificNet Class Usage Examples

Public Methods

Method Description
Deserialize ( JsonReader reader ) : IPageViewDefinition
GetAll ( ) : IEnumerable
TerrificViewDefinitionRepository ( IFileSystem fileSystem, ITerrificNetConfig configuration, ITemplateRepository templateRepository, IModelTypeProvider typeProvider ) : System.Collections.Generic
TryGetFromView ( string path, IPageViewDefinition &viewDefinition ) : bool
TryGetFromViewId ( string id, IPageViewDefinition &viewDefinition ) : bool
UpdateViewDefinitionForId ( string id, IPageViewDefinition viewDefinition ) : Task

Private Methods

Method Description
TryReadPageDefinition ( IPageViewDefinition &viewDefinition, PathInfo fileName ) : bool
WritePageDefinition ( IPageViewDefinition viewDefinition, PathInfo fileName ) : System.Threading.Tasks.Task

Method Details

Deserialize() public method

public Deserialize ( JsonReader reader ) : IPageViewDefinition
reader Newtonsoft.Json.JsonReader
return IPageViewDefinition

GetAll() public method

public GetAll ( ) : IEnumerable
return IEnumerable

TerrificViewDefinitionRepository() public method

public TerrificViewDefinitionRepository ( IFileSystem fileSystem, ITerrificNetConfig configuration, ITemplateRepository templateRepository, IModelTypeProvider typeProvider ) : System.Collections.Generic
fileSystem IFileSystem
configuration ITerrificNetConfig
templateRepository ITemplateRepository
typeProvider IModelTypeProvider
return System.Collections.Generic

TryGetFromView() public method

public TryGetFromView ( string path, IPageViewDefinition &viewDefinition ) : bool
path string
viewDefinition IPageViewDefinition
return bool

TryGetFromViewId() public method

public TryGetFromViewId ( string id, IPageViewDefinition &viewDefinition ) : bool
id string
viewDefinition IPageViewDefinition
return bool

UpdateViewDefinitionForId() public method

public UpdateViewDefinitionForId ( string id, IPageViewDefinition viewDefinition ) : Task
id string
viewDefinition IPageViewDefinition
return Task