static void Main(string[] args) { var runtime = new ForkedRuntime(new RuntimeConfiguration() { JobTypeSearchAssembly = Assembly.GetEntryAssembly() }); runtime.Run(args); }
public static void Main(string[] args) { // Set the default assembly to query for jobtypes var runtime = new ForkedRuntime(new RuntimeConfiguration { JobTypeSearchAssemblies = new [] { typeof(MinutelyJob).Assembly } }); // Pass the arguments of the forked execution to the runtime runtime.Run(args); }
public static void Main(string[] args) { // Redirect Log-Output to Trace, remove this if you install any other Log-Framework LogProvider.SetCurrentLogProvider(new TraceLogProvider()); // Make sure the compiler does not remove the binding to this assembly var jobAssemblyToQueryJobs = typeof(ProgressJob).Assembly; // Set the default assembly to query for jobtypes var runtime = new ForkedRuntime(new RuntimeConfiguration { JobTypeSearchAssembly = jobAssemblyToQueryJobs }); // Pass the arguments of the forked execution to the runtime runtime.Run(args); }
public static void Main(string[] args) { try { // Make sure the compiler does not remove the binding to this assembly var jobAssemblyToQueryJobs = typeof(ProgressJob).Assembly; // Set the default assembly to query for jobtypes var runtime = new ForkedRuntime(new RuntimeConfiguration { JobTypeSearchAssemblies = new[] { jobAssemblyToQueryJobs } }); // Pass the arguments of the forked execution to the runtime runtime.Run(args); } catch (Exception e) { File.WriteAllText("error.txt", e.ToString()); } }