C# Class Naif.Blog.Services.FileBlogRepository

Inheritance: IBlogRepository
ファイルを表示 Open project: cnurse/Naif.Blog

Public Methods

Method Description
Delete ( Post post ) : void
GetAll ( string blogId ) : IEnumerable
GetCategories ( string blogId ) : int>.Dictionary
GetTags ( string blogId ) : int>.Dictionary
Save ( Post post ) : void
SaveMedia ( string blogid, MediaObject media ) : string

Protected Methods

Method Description
FileBlogRepository ( IHostingEnvironment env, IMemoryCache memoryCache ) : System
GetPost ( string file, string blogId ) : Post
SavePost ( Post post, string file ) : void

Private Methods

Method Description
GetPosts ( string blogId ) : IEnumerable

Method Details

Delete() public method

public Delete ( Post post ) : void
post Naif.Blog.Models.Post
return void

FileBlogRepository() protected method

protected FileBlogRepository ( IHostingEnvironment env, IMemoryCache memoryCache ) : System
env IHostingEnvironment
memoryCache IMemoryCache
return System

GetAll() public method

public GetAll ( string blogId ) : IEnumerable
blogId string
return IEnumerable

GetCategories() public method

public GetCategories ( string blogId ) : int>.Dictionary
blogId string
return int>.Dictionary

GetPost() protected abstract method

protected abstract GetPost ( string file, string blogId ) : Post
file string
blogId string
return Naif.Blog.Models.Post

GetTags() public method

public GetTags ( string blogId ) : int>.Dictionary
blogId string
return int>.Dictionary

Save() public method

public Save ( Post post ) : void
post Naif.Blog.Models.Post
return void

SaveMedia() public method

public SaveMedia ( string blogid, MediaObject media ) : string
blogid string
media Naif.Blog.Models.MediaObject
return string

SavePost() protected abstract method

protected abstract SavePost ( Post post, string file ) : void
post Naif.Blog.Models.Post
file string
return void