protected override Assembly? Load()

in src/AzureFunctions.PowerShell.OpenTelemetry.SDK/AssemblyLoadContext/DependencyAssemblyLoadContext.cs [21:31]


        protected override Assembly? Load(AssemblyName assemblyName)
        {
            // Try to load the assembly with the given name from the dependency directory
            string assemblyPath = Path.Join(_dependencyDirPath, $"{assemblyName.Name}.dll");
            if (File.Exists(assemblyPath))
            {
                return LoadFromAssemblyPath(assemblyPath);
            }
            // Return null for other assemblies to allow assembly resolution to continue
            return null;
        }