Example #1
0
            /** <inheritdoc /> */
            public bool Invoke(Guid nodeId, string message)
            {
                try
                {
                    LastNodeIds.Push(nodeId);
                    ReceivedMessages.Push(message);

                    ReceivedEvent.Signal();

                    return(ListenResult);
                }
                catch (Exception ex)
                {
                    // When executed on remote nodes, these exceptions will not go to sender,
                    // so we have to accumulate them.
                    Failures.Push(string.Format("Exception in Listen (msg: {0}, id: {1}): {2}", message, nodeId, ex));
                    throw;
                }
            }