IDataStorageConfigurationService.cs 883 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. namespace IMCS.CCS.Service
  6. {
  7. public interface IDataStorageConfigurationService
  8. {
  9. /// <summary>
  10. /// 是否使用Redis
  11. /// </summary>
  12. /// <returns></returns>
  13. public bool IsUseRedis();
  14. /// <summary>
  15. /// 获取项目的 文件地址 或者 项目 redis key
  16. /// </summary>
  17. /// <returns></returns>
  18. public string GetProjectPathOrKey();
  19. /// <summary>
  20. /// 获取任务的 文件地址 或者 项目 redis key
  21. /// </summary>
  22. /// <returns></returns>
  23. public string GetTasksPathOrKey();
  24. /// <summary>
  25. /// 获取 Redis 连接字符串
  26. /// </summary>
  27. /// <returns></returns>
  28. public string GetRedisConnectionString();
  29. }
  30. }