Exemple #1
0
        /// <summary>
        /// Initialize,instantiate xshellManager and stateMachine
        /// </summary>
        public void Initialize(IRemoteMethodInvoker remoteInvoker)
        {
            IStateMachine stateMachine = new DefaultStateMachineFactory().CreateStateMachineFromXml(stateMachineConfigXml);

            _stateMachine  = stateMachine as DefaultStateMachine;
            _xshellManager = XShellManager.GetInstance();
            _xshellManager.Initialize(remoteInvoker);
            _xshellManager._remoteInvoker.RegisterServiceObject <IWorkflow>(this);
        }
Exemple #2
0
 /// <summary>
 /// Get XShellManager instance
 /// </summary>
 /// <returns></returns>
 public static XShellManager GetInstance()
 {
     if (null == _xshellManager)
     {
         lock (locker)
         {
             if (null == _xshellManager)
             {
                 _xshellManager = new XShellManager();
             }
         }
     }
     return(_xshellManager);
 }
Exemple #3
0
 /// <summary>
 /// construct
 /// </summary>
 public ActionBase()
 {
     xshellManager = XShellManager.GetInstance();
 }