/
krasninja
/
querycat
Обзор
Документация
Войти
/
krasninja
/
querycat
Код
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/QueryCat.Backend.Core/Functions/IUriResolver.cs
17 строк
634 B
Ivan Kozhin
Introduce IUriResolver, add ability to add custom
27 янв 2024, 07:29
27 янв 2024, 07:29
c53899f
Код
Авторство
О чём код?
namespace QueryCat.Backend.Core.Functions; /// <summary> /// Try to resolve URI into function call. It is needed to resolve /// "https://ya.ru" to Curl call and "C:\1.txt" into ReadFile call. /// The execution context contains the chain to test. /// </summary> public interface IUriResolver { /// <summary> /// Try to resolve URI to a real function call. /// </summary> /// <param name="uri">URI.</param> /// <param name="functionName">Resolved function name or null.</param> /// <returns><c>True</c> if resolved, <c>false</c> otherwise.</returns> bool TryResolve(string uri, out string? functionName); }