JobAdditionalDependencies Property

Gets the additional dependency that are sent with the Job.
Namespace:  AGI.Parallel.Client
Assembly:  AGI.Parallel.Client (in AGI.Parallel.Client.dll) Version: (
public AssemblyCollection AdditionalDependencies { get; }

Property Value

Type: AssemblyCollection
The assemblies.
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using AGI.Parallel.Client;
using AGI.Parallel.Infrastructure;

namespace CodeSamples
    class Program
        static void Main(string[] args)
            using (IJobScheduler scheduler = new ClusterJobScheduler("localhost"))

                Job job = scheduler.CreateJob();
                List<string> assemblyNames = new List<string>();

                // For instance, let's just send all the assemblies in a directory.
                // Real-world examples include working with Microsoft's Managed Extensibility Framework, which may not reference your assemblies automatically.
                foreach (string file in Directory.GetFiles("C:\\LocationOfAssemblies", "*.dll", SearchOption.TopDirectoryOnly))
                    Assembly assembly = Assembly.LoadFile(file);

                job.AddTask(new PrintAssembliesInTask { AssemblyNames = assemblyNames } );

                Console.WriteLine("The assemblies the task printed:");

            * The output of the application should resemble:
            * The assemblies the task printed:
            * ICSharpCode.SharpZipLib, Version=, Culture=neutral, PublicKeyToken=1b03e6acf1164f73
            * Microsoft.Practices.ObjectBuilder2, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35
            * Microsoft.Practices.Unity.Configuration, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35
            * Microsoft.Practices.Unity, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35
            * White.Core, Version=, Culture=neutral, PublicKeyToken=2672efbf3e161801
            * White.NUnit, Version=, Culture=neutral, PublicKeyToken=2672efbf3e161801
            * Xstream.Core, Version=1.0.3552.35177, Culture=neutral, PublicKeyToken=5a34ce33a538d84f

        public class PrintAssembliesInTask : Task
            public List<string> AssemblyNames { get; set; }

            public override void Execute()
                // Your assemblies will be sent to the host.
                // This task demonstrates getting a reference to the Assembly type.
                foreach (string assemblyName in this.AssemblyNames)
                    Assembly assembly = Assembly.Load(assemblyName);
See Also

STK Scalability 1.4 API for .NET