public virtual void CreateNewTimerJob(DateTime?dueDate) { // create new timer job TimerEntity newTimer = new TimerEntity(this); newTimer.Duedate = dueDate; context.Impl.Context.CommandContext.JobManager.Schedule(newTimer); }
protected internal TimerEntity(TimerEntity te) { JobHandlerConfigurationRaw = te.JobHandlerConfigurationRaw; JobHandlerType = te.JobHandlerType; Exclusive = te.Exclusive; repeat = te.repeat; retries = te.retries; ExecutionId = te.ExecutionId; ProcessInstanceId = te.ProcessInstanceId; JobDefinitionId = te.JobDefinitionId; SuspensionState = te.SuspensionState; DeploymentId = te.DeploymentId; ProcessDefinitionId = te.ProcessDefinitionId; ProcessDefinitionKey = te.ProcessDefinitionKey; TenantId = te.TenantId; }