兼容win7版应用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
781 B

using AIK.Models.SystemSettings;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AIK.Service.IService
{
public interface IConfigurationService
{
string Environment { get; }
ApiSettings ApiSettings { get; }
CacheSettings CacheSettings { get; }
T GetSection<T>(string sectionName) where T : new();
string GetConnectionString(string name);
// 新增方法
Task UpdateLanguageAsync(string languageCode);
Task UpdateApiSettingsAsync(Action<ApiSettings> updateAction);
Task UpdateCacheSettingsAsync(Action<CacheSettings> updateAction);
Task SaveConfigurationAsync();
Task ReloadConfigurationAsync();
}
}