void IDispatcher.SendSimulationState(SimulationStateMessage pMessage) { IDispatcher target; lock (this) { target = Target; } if (target != null) { target.SendSimulationState(pMessage); } }
public virtual void SendSimulationState(SimulationStateMessage pMessage) { }
void IDispatcher.SendSimulationState(SimulationStateMessage pMessage) { MessageReceived = true; SyncContext.Post((object state) => SimulationTime = pMessage.SimulationTime, null); }