Table of Contents

Method FromWorkspaceResolver

Namespace
Oscova.Agents.Providers
Assembly
Oscova.Agents.dll

FromWorkspaceResolver(Func<IReadOnlyList<AllowedDirectory>>)

Creates an environment provider that resolves workspace directories at run time.

public static EnvironmentContextProvider FromWorkspaceResolver(Func<IReadOnlyList<AllowedDirectory>> workspaceResolver)

Parameters

workspaceResolver Func<IReadOnlyList<AllowedDirectory>>

The callback that returns the current allowed directories.

Returns

EnvironmentContextProvider

An environment context provider using the supplied resolver.