public void SubmitJob(Microsoft.Hpc.Scheduler.ISchedulerJob job, System.String username, System.String password) { lock (SyncRoot) { // Retrieve the scheduler job instance if we are dealing with a wrapper ThreadSafeSchedulerJob threadSafeSchedulerJob = job as ThreadSafeSchedulerJob; if (threadSafeSchedulerJob != null) { job = threadSafeSchedulerJob.Instance; } Instance.SubmitJob(job, username, password); } }
public void AddJob(Microsoft.Hpc.Scheduler.ISchedulerJob job) { lock (SyncRoot) { // Retrieve the scheduler job instance if we are dealing with a wrapper ThreadSafeSchedulerJob threadSafeSchedulerJob = job as ThreadSafeSchedulerJob; if (threadSafeSchedulerJob != null) { job = threadSafeSchedulerJob.Instance; } Instance.AddJob(job); } }