public CommentableAndLikeService(
     MongoDBContext db,
     ICommentServiceProvider comments_prd,
     ILikesServiceProvider likes,
     string collName) : base(db, likes, collName)
 {
     this.comments = comments_prd;
 }
Exemple #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;
 }
 public CommentableServiceComponent(ILogicalDeleteService <T, Error> context, ICommentServiceProvider comments)
 {
     this.context  = context;
     this.comments = comments;
 }