Method TryResolve
- Namespace
- Oscova.Agents.Tasks
- Assembly
- Oscova.Agents.dll
TryResolve(TaskRunScope?, AgentDefinition, Func<AgentDefinition, IReadOnlyList<AllowedDirectory>>, out TaskRunSurface?, out string?, TaskRunScopeValidationCatalog?)
Tries to resolve an optional task run scope into an effective runtime surface.
public bool TryResolve(TaskRunScope? scope, AgentDefinition selectedAgent, Func<AgentDefinition, IReadOnlyList<AllowedDirectory>> resolveDirectories, out TaskRunSurface? surface, out string? error, TaskRunScopeValidationCatalog? catalog = null)Parameters
scopeTaskRunScope?selectedAgentAgentDefinitionresolveDirectoriesFunc<AgentDefinition, IReadOnlyList<AllowedDirectory>>surfaceTaskRunSurface?errorstring?catalogTaskRunScopeValidationCatalog?