Dev2.Session.DebugTO.CleanUp C# (CSharp) Method

CleanUp() public method

public CleanUp ( ) : void
return void
        public virtual void CleanUp()
        {
            CleanUpCalled = true;         
        }

Usage Example

示例#1
0
        void PersistBinaryDataList(DebugTO to)
        {
            DebugTO tmp = null;

            try
            {
                if (_debugPersistSettings.TryGetValue(to.WorkflowID, out tmp))
                {
                    to.XmlData = tmp.RememberInputs ? tmp.XmlData : (to.XmlData ?? "<DataList></DataList>");
                    tmp.CleanUp();
                }
                else
                {
                    to.XmlData = to.RememberInputs ? to.XmlData : "<DataList></DataList>";
                }
                to.BinaryDataList = new DataListModel();
                to.BinaryDataList.Create(to.XmlData, to.DataList);
            }
            finally
            {
                tmp?.CleanUp();
            }
        }