История страницы
...
Блок кода | ||||
---|---|---|---|---|
| ||||
public class GetConfigValue : BaseRobinAction
{
private readonly IConfigurationService _configurationService;
public GetConfigValue(IActionLogger logger, IConfigurationService configurationService) : base(logger)
{
_configurationService = configurationService;
}
public override IDictionary<string, object> Execute(IDictionary<string, object> parameters)
{
var key = (string)parameters["key"];
var pattern = (string)parameters["pattern"];
var valueByKey = _configurationService.GetConfigValue(key);
var allKeys = _configurationService.GetKeys(pattern);
return new Dictionary<string, object>
{
{ "value", valueByKey },
{ "keys", allKeys.Cast<object>().ToList() }
};
}
} |
ConverterService
DisposeService
...
Обзор
Инструменты контента