ProjectManager.LoadReferencedAssembliesInParallel Method

Definition

Returns a dictionary that maps each existing dll to the Q# attributes it contains which are loaded in parallel. Generates a suitable error message for each binary file that could not be loaded. Calls the given onDiagnostic action on all generated diagnostics.

public static System.Collections.Immutable.ImmutableDictionary<string,Microsoft.Quantum.QsCompiler.CompilationBuilder.References.Headers> LoadReferencedAssembliesInParallel (System.Collections.Generic.IEnumerable<string> references, Action<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic>? onDiagnostic = default, Action<Exception>? onException = default, bool ignoreDllResources = false);
static member LoadReferencedAssembliesInParallel : seq<string> * Action<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic> * Action<Exception> * bool -> System.Collections.Immutable.ImmutableDictionary<string, Microsoft.Quantum.QsCompiler.CompilationBuilder.References.Headers>
Public Shared Function LoadReferencedAssembliesInParallel (references As IEnumerable(Of String), Optional onDiagnostic As Action(Of Diagnostic) = Nothing, Optional onException As Action(Of Exception) = Nothing, Optional ignoreDllResources As Boolean = false) As ImmutableDictionary(Of String, References.Headers)

Parameters

references
IEnumerable<String>
onDiagnostic
Action<Diagnostic>
onException
Action<Exception>
ignoreDllResources
Boolean

Returns

ImmutableDictionary<String,Headers>

Remarks

This method waits for Tasks to complete and may deadlock if invoked through a Task.

Applies to