Beispiel #1
0
        //*********************************************************************
        ///
        /// <summary>
        ///     This method is used to return list of ScriptJob type
        /// </summary>
        /// <param name="sequenceReqList"></param>
        /// <returns>list of ScriptJob</returns>
        ///
        //*********************************************************************

        private static List <ScriptJob> Convert(List <SequenceRequest> sequenceReqList)
        {
            try
            {
                return(sequenceReqList.Select(
                           sequenceReq => Convert(SequenceSpec.Deserialize(sequenceReq.Config))).ToList());
            }
            catch (Exception ex)
            {
                throw new Exception("Exception in ScriptInterface.Convert() : " +
                                    CmpInterfaceModel.Utilities.UnwindExceptionMessages(ex));
            }
        }
Beispiel #2
0
        //*********************************************************************
        ///
        /// <summary>
        ///     This method is used to return ScriptJob type
        /// </summary>
        /// <param name="sequenceReq"></param>
        /// <returns>ScriptJob</returns>
        ///
        //*********************************************************************

        private static ScriptJob Convert(SequenceRequest sequenceReq)
        {
            try
            {
                var ss = Convert(SequenceSpec.Deserialize(sequenceReq.Config));
                return(ss);
            }
            catch (Exception ex)
            {
                throw new Exception("Exception in ScriptInterface.Convert() : " +
                                    CmpInterfaceModel.Utilities.UnwindExceptionMessages(ex));
            }
        }