Skip to content

ReferencedAssemblyProvider Methods

Discovers assemblies which contain Orleans serialization application parts.

AddAssembly(HashSet<Assembly>, Assembly)

static
View source
public static void AddAssembly(HashSet<Assembly> parts, Assembly assembly)
Adds an assembly and its referenced Orleans serialization application parts to a collection.

Parameters

partsHashSet<Assembly>
The collection to add assemblies to.
assemblyAssembly
The assembly to inspect.

AddFromAssemblyLoadContext(HashSet<Assembly>, Assembly?)

static
View source
public static void AddFromAssemblyLoadContext(HashSet<Assembly> parts, Assembly? assembly = null)
Adds Orleans serialization application parts from the load context containing an assembly to a collection.

Parameters

partsHashSet<Assembly>
The collection to add assemblies to.
assemblyAssembly?
The assembly whose load context is inspected, or null to use the assembly containing this type.

AddFromAssemblyLoadContext(HashSet<Assembly>, AssemblyLoadContext)

static
View source
public static void AddFromAssemblyLoadContext(HashSet<Assembly> parts, AssemblyLoadContext context)
Adds Orleans serialization application parts from an assembly load context to a collection.

Parameters

partsHashSet<Assembly>
The collection to add assemblies to.
contextAssemblyLoadContext
The assembly load context to inspect.

AddFromDependencyContext(HashSet<Assembly>, Assembly?)

static
View source
public static void AddFromDependencyContext(HashSet<Assembly> parts, Assembly? assembly = null)
Adds Orleans serialization application parts from an assembly's dependency context to a collection.

Parameters

partsHashSet<Assembly>
The collection to add assemblies to.
assemblyAssembly?
The assembly whose dependency context is inspected, or null to use the entry assembly.

GetRelevantAssemblies

static
View source
public static IEnumerable<Assembly> GetRelevantAssemblies()
Gets the loaded assemblies which contain Orleans serialization application parts.

Returns

The assemblies which contain Orleans serialization application parts.