private IJob CreateJob(int priority, string username) { var job = new Job(priority, username); if (!job.AddFile(Assembly.GetEntryAssembly().Location)) { throw new ParcsException(); } return job; }
public static void Main(string[] args) { var job = new Job(); if (!job.AddFile(Assembly.GetExecutingAssembly().Location/*"MyFirstModule.exe"*/)) { Console.WriteLine("File doesn't exist"); return; } (new MainIntegralModule()).Run(new ModuleInfo(job, null)); Console.ReadKey(); }