public PostsController(PostServices postServices,TagServices tagService ,CommentServices commentService,AppConfiguration config)
 {
     this.postServices = postServices;
     this.commentService = commentService;
     this.tagService = tagService;
     this.config = config;
 }
示例#2
0
 public MetaWeblogAPI()
 {
     try
     {
         postServices = ObjectFactory.GetInstance<PostServices>();
         userServices = ObjectFactory.GetInstance<UserServices>();
         tagServices = ObjectFactory.GetInstance<TagServices>();
     }
     catch
     {
         Debug.WriteLine(ObjectFactory.WhatDoIHave());
         throw;
     }
 }