コード例 #1
0
ファイル: BlogController.cs プロジェクト: S1lentem/BlogHost
 public BlogController(IUserRepository users, IBlogsRepository blogs, IPostRepository articles, IImageStorable imageStorable,
                       IConfiguration configuration)
 {
     this.blogs              = blogs;
     this.articles           = articles;
     this.imageStorable      = imageStorable;
     this.imageStorable.Root = configuration["ImageRoot"];
 }
コード例 #2
0
ファイル: PostController.cs プロジェクト: S1lentem/BlogHost
 public PostController(IPostRepository posts, IBlogsRepository blogs, ICommentRepository comments, IUserRepository users,
                       IHostingEnvironment appEnvironment, IImageStorable imageStorable, IConfiguration configuration)
 {
     this.appEnvironment     = appEnvironment;
     this.imageStorable      = imageStorable;
     this.posts              = posts;
     this.blogs              = blogs;
     this.comments           = comments;
     this.users              = users;
     this.imageStorable.Root = configuration["ImageRoot"];
 }