Exemplo n.º 1
0
        /// <summary>
        /// 将deliver deadhead to fpd
        /// </summary>
        /// <param name="generalRequestCommand"></param>
        /// <returns></returns>
        private byte[] DeliverSystemSessionData(SessionRequestCommand sRequestCommand)
        {
            byte[]         serializedDataHead = SessionUtility.SerializeDataHead(_dataHead);
            CommandContext context            = SessionUtility.CreateCommandContext(CommunicationNode.FPD, CommunicationCommandID.XA_SYSTEMSESSION_DATA_CACHE, serializedDataHead);
            int            result             = new CLRContaineeBase().GetCommunicationProxy().AsyncSendCommand(context);

            return((0 == result) ? new byte[] {} : null);
        }
Exemplo n.º 2
0
        public static void ShowStatusWarning(this CLRContaineeBase containee, string key, params object[] args)
        {
            try
            {
                Logger.LogFuncUp();

                ShowStatus("Warning", StatusBarInfoType.Warning, key, args);

                Logger.LogFuncDown();
            }
            catch (Exception ex)
            {
                Logger.LogFuncException(ex.Message + ex.StackTrace);
                throw;
            }
        }
Exemplo n.º 3
0
 public static void ShowStatusError(this CLRContaineeBase containee, string key, params object[] args)
 {
     ShowStatus("Error", StatusBarInfoType.Error, key, args);
 }