示例#1
0
        /// <summary>
        /// Is invoked when a relevant <see cref="Message" /> is published.
        /// </summary>
        /// <param name="publish"></param>
        public void Callback(IPublish <Message> publish)
        {
            if (publish == null)
            {
                throw new ArgumentNullException("publish");
            }

            try
            {
                _peer.Callback(publish);
            }
            catch (Exception ex)
            {
                Log.Error(ex);
            }
        }