Esempio n. 1
0
 /// <summary>Evaluates the given expression enlisted within the specified application transaction.</summary>
 public DAE.Runtime.Data.Scalar EvaluateScalarWith(IServerProcess process, Guid iD, string expression, DAE.Runtime.DataParams paramsValue)
 {
     if (process == null)
     {
         process = DataSession.UtilityProcess;
     }
     process.JoinApplicationTransaction(iD, false);
     try
     {
         return(EvaluateScalar(process, expression, paramsValue));
     }
     finally
     {
         process.LeaveApplicationTransaction();
     }
 }
Esempio n. 2
0
        private void StartProcess()
        {
            DataSession session = ((DAEDataSet)_link.DataSet).Session;

            _process = session.ServerSession.StartProcess(new ProcessInfo(session.ServerSession.SessionInfo));
            DataView aTServer = _link.DataSet is DataView ? ((DataView)_link.DataSet).ApplicationTransactionServer : null;

            if (aTServer != null)
            {
                _process.JoinApplicationTransaction(aTServer.ApplicationTransactionID, false);
                _aTJoined = true;
            }
            else
            {
                _aTJoined = false;
            }
        }