Exemple #1
0
        /// <summary>
        /// 将网络层的通知传递到应用层
        /// </summary>
        /// <param name="notifyType"></param>
        /// <param name="message"></param>
        private void ReceiveNotify(CometEventType notifyType, String message)
        {
            if (OnReceiveNotify != null)
            {
                CometEventArgs e = new CometEventArgs()
                {
                    Type = notifyType, Response = message
                };

                OnReceiveNotify(this, e);
            }
        }
Exemple #2
0
        /// <summary>
        /// 将网络层的通知传递到应用层
        /// </summary>
        /// <param name="notifyType"></param>
        /// <param name="message"></param>
        private void ReceiveNotify(CometEventType notifyType, String message)
        {
            if (OnReceiveNotify != null)
            {
                CometEventArgs e = new CometEventArgs() { Type = notifyType, Response = message };

                OnReceiveNotify(this, e);
            }
        }