BuildApp – StepInstancesConnector

Based on StepInstances and StepInstanceConnections the connections are established by delegates. There are four possibilities of connection. Instance to instance, instance to static, static to instance and static to static. The following source code shows how the connection is done for instance to instance:

Delegate tHandlerDelegate = Delegate.CreateDelegate(tSourceEventInfo.EventHandlerType,  tTartgetStepInstance.StepObject, tTargetMethodInfo);
tSourceEventInfo.AddEventHandler(tSourceStepInstance.StepObject, tHandlerDelegate);

Note
Be careful with static classes! Static steps will be connected to every source / target of a Signal!

Now the “construction” of the application is finished. The main work of the AppBuilder is done.

Last edited Apr 20, 2013 at 2:55 PM by InneHo, version 2

Comments

No comments yet.