This is again IronPython 101, but again took me a little bit of time to work out how to do it. Consider the following C# delegate and method:
protected delegate void TimedEvent(Job job);
protected void TimerStateTransition(IList<Job> jobs, TimedEvent evnt)
{
// Process jobs
}
To call this method, you need to cast the method you are passing as the delegate, to the type of the delegate:
# Transitions to state 1224
# param job
def _TimerEvent_1225(self, job):
self._TimerEvent(job, self.JOB_STATE_1224_ID)
# _TimerEvent - End
# Performs the timed state transitions for a job in state 1205
# param jobs
def _TimerStateTransition_1205(self, jobs):
self.TimerStateTransition(jobs, StageGateStateMachine.TimedEvent(self._TimerEvent_1224), 6)
# _TimerStateTransition_1205 - End