2using System.Collections.Generic;
15 private readonly List<SolverAdapterLoadResult>
19 private readonly List<string>
54 public List<SolverAdapterLoadResult>
77 _adapterLoadResults.Any(
85 _adapterLoadResults.Count(
110 ArgumentNullException.ThrowIfNull(
113 _adapterLoadResults.Add(
129 if (
string.IsNullOrWhiteSpace(
132 throw new ArgumentException(
133 "A solver-runtime diagnostic cannot be empty.",
152 IEnumerable<string> diagnostics)
154 ArgumentNullException.ThrowIfNull(
161 if (!
string.IsNullOrWhiteSpace(
Represents the result of attempting to load a solver adapter plugin.
Represents the complete result of solver and adapter discovery on the current computer.
int LoadedAdapterCount
Gets the number of successfully loaded adapters.
SolverRuntimeContext? RuntimeContext
Gets or sets the runtime context created from the discovered and loaded solver infrastructure.
SolverDiscoveryResult? DiscoveryResult
Gets or sets the discovery result used to build the runtime.
void AddDiagnostic(string message)
Adds a diagnostic message.
bool CanSolve
Gets a value indicating whether the resulting runtime can currently execute at least one solver.
bool HasLoadedAdapter
Gets a value indicating whether at least one adapter was loaded successfully.
bool IsSuccessful
Gets a value indicating whether a runtime context was created successfully.
void AddDiagnostics(IEnumerable< string > diagnostics)
Adds a collection of diagnostic messages.
List< string > Diagnostics
Gets diagnostic messages produced while building the runtime.
void AddAdapterLoadResult(SolverAdapterLoadResult loadResult)
Adds an adapter-loading result.
SolverRuntimeBuildResult()
Initializes an empty solver-runtime build result.
List< SolverAdapterLoadResult > AdapterLoadResults
Gets all adapter-loading attempts performed while building the runtime.
Represents the solver runtime infrastructure available to the application after adapter discovery and...