public NoteFileService(DataContext dataContext, ConfigFileService ConfigFileService) { this.dataContext = dataContext; this.ConfigFileService = ConfigFileService; this.storeConfig = ConfigFileService.WebConfig.FileStoreConfig; this.webSiteConfig = ConfigFileService.WebConfig; }
public TokenSerivce(DataContext dataContext, ConfigFileService configFileService, IDistributedIdGenerator idGenerator) { this.idGenerator = idGenerator; this.dataContext = dataContext; this.config = configFileService.WebConfig; }
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 ==================== "); }
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; }
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; }
public AttachService(DataContext dataContext, ConfigFileService configFileService) { this.dataContext = dataContext; this.config = configFileService.WebConfig; }
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; }
public ConfigService(ConfigFileService configFileService) { config = configFileService.WebConfig; }