Hi
See Dispatching Invocations to User Threads - Ice 3.4 - ZeroC
Code:
initData.dispatcher = delegate(System.Action action, Ice.Connection connection)
{
Dispatcher.BeginInvoke(DispatcherPriority.Normal, action);
};
Here you configure the dispatcher used by all incoming operations, and by calling BeginInvoke you run that invocations in the GUI thread, that is what you want if you want to manipulate GUI elements directly from your servant or callback implementations.
For example in subscriber demo the invocation of 'tick' will go throw this dispatcher, and will be safe to modify the GUI from your 'tick' method implementation.