Exemplo n.º 1
0
 public NoteFileService(DataContext dataContext, ConfigFileService ConfigFileService)
 {
     this.dataContext       = dataContext;
     this.ConfigFileService = ConfigFileService;
     this.storeConfig       = ConfigFileService.WebConfig.FileStoreConfig;
     this.webSiteConfig     = ConfigFileService.WebConfig;
 }
Exemplo n.º 2
0
        public TokenSerivce(DataContext dataContext, ConfigFileService configFileService, IDistributedIdGenerator idGenerator)
        {
            this.idGenerator = idGenerator;

            this.dataContext = dataContext;
            this.config      = configFileService.WebConfig;
        }
Exemplo n.º 3
0
        public void InitSecret()
        {
            Console.WriteLine(" ==================== Initializing Secret Start==================== ");
            ConfigFileService configFileService = new ConfigFileService();

            configFileService.WebConfig.SecurityConfig.Secret = RandomTool.CreatSafeRandomBase64(32);
            configFileService.Save();
            Console.WriteLine(" ==================== Initialized Secret Successfully ==================== ");
        }
Exemplo n.º 4
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;
 }
Exemplo n.º 5
0
 public RealNameService(DataContext dataContext, IDistributedIdGenerator idGenerator,
                        ConfigFileService configFileService,
                        PasswordStoreFactory passwordStoreFactory,
                        ILoggingService logging,
                        ICryptographyProvider cryptographyProvider)
 {
     this.idGenerator          = idGenerator;
     this.dataContext          = dataContext;
     this.Config               = configFileService.WebConfig;
     this.passwordStoreFactory = passwordStoreFactory;
     this.cryptographyProvider = cryptographyProvider;
     this.logging              = logging;
 }
Exemplo n.º 6
0
 public AttachService(DataContext dataContext, ConfigFileService configFileService)
 {
     this.dataContext = dataContext;
     this.config      = configFileService.WebConfig;
 }
Exemplo n.º 7
0
 public AuthService(DataContext dataContext, IPasswordStore passwordStore, NotebookService notebookService, ConfigFileService configFileService, IDistributedIdGenerator idGenerator, PasswordStoreFactory passwordStoreFactory)
 {
     this.idGenerator          = idGenerator;
     this.dataContext          = dataContext;
     this.passwordStore        = passwordStore;
     this.NotebookService      = notebookService;
     this.config               = configFileService.WebConfig;
     this.passwordStoreFactory = passwordStoreFactory;
 }
Exemplo n.º 8
0
 public ConfigService(ConfigFileService configFileService)
 {
     config = configFileService.WebConfig;
 }