Table of Contents

Method ResolveOrThrow

Namespace
Oscova.Agents.Tasks
Assembly
Oscova.Agents.dll

ResolveOrThrow(TaskRunScope?, AgentDefinition, Func<AgentDefinition, IReadOnlyList<AllowedDirectory>>, TaskRunScopeValidationCatalog?)

Resolves an optional task run scope or throws with an actionable validation message.

public TaskRunSurface ResolveOrThrow(TaskRunScope? scope, AgentDefinition selectedAgent, Func<AgentDefinition, IReadOnlyList<AllowedDirectory>> resolveDirectories, TaskRunScopeValidationCatalog? catalog = null)

Parameters

scope TaskRunScope?
selectedAgent AgentDefinition
resolveDirectories Func<AgentDefinition, IReadOnlyList<AllowedDirectory>>
catalog TaskRunScopeValidationCatalog?

Returns

TaskRunSurface