public CommentableAndLikeService(
     MongoDBContext db,
     ICommentServiceProvider comments_prd,
     ILikesServiceProvider likes,
     string collName) : base(db, likes, collName)
 {
     this.comments = comments_prd;
 }
Example #2
0
 public StatusService(
     MongoDBContext db,
     ICommentServiceProvider comment_provider,
     ILikesServiceProvider likes_provider) : base(db, ModelCollectionName.Status)
 {
     this.comments_comp = new CommentableServiceComponent <Status>(this, comment_provider);
     this.likes_comp    = new LikeableServiceComponent <Status>(this, likes_provider);
     this.comments      = comment_provider;
     this.likes         = likes_provider;
 }
Example #3
0
 public LikeableServiceComponent(ILogicalDeleteService <T, Error> context, ILikesServiceProvider likes)
 {
     this.context = context;
     this.likes   = likes;
 }