Ejemplo n.º 1
0
        /// <summary>
        /// Forwards remote protocol configuration errors to the local protocol.
        /// </summary>
        /// <param name="protocolId">A UInt16 that specifies the unique protocol
        /// identifier.</param>
        /// <param name="message">A String that contains the error message.</param>
        public void OnCapabilitiesError(ushort protocolId, string message)
        {
            ProtocolBase p = null;

            lock (protocolImplementations)
            {
                if (protocolImplementations.ContainsKey(protocolId))
                {
                    p = protocolImplementations[protocolId];
                }
            }
            if (p != null)
            {
                p.OnErrorReceived(message);
            }
        }