Ejemplo n.º 1
0
 public NoteContentService(DataContext dataContext,
                           JiebaSegmenterService jiebaSegmenter,
                           ConfigFileService configFileService,
                           ICryptographyProvider cryptographyProvider,
                           IDistributedIdGenerator idGenerator)
 {
     this.cryptographyProvider = cryptographyProvider;
     this.idGenerator          = idGenerator;
     this.dataContext          = dataContext;
     this.config = configFileService.WebConfig;
     this.jieba  = jiebaSegmenter;
 }
Ejemplo n.º 2
0
 public BlogService(DataContext dataContext, JiebaSegmenterService jieba)
 {
     this.dataContext = dataContext;
     this.jieba       = jieba;
 }