Table of Contents

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

scope TaskRunScope?
selectedAgent AgentDefinition
resolveDirectories Func<AgentDefinition, IReadOnlyList<AllowedDirectory>>
surface TaskRunSurface?
error string?
catalog TaskRunScopeValidationCatalog?

Returns

bool