Esempio n. 1
0
        public override void DoWork()
        {
            IRemoteMethodInvoker remoteInvoker = _bootstrapper.IoC.Container.GetExportedValue <IRemoteMethodInvoker>();

            _appManager = new AppManager();
            _appManager.Initialize(remoteInvoker);
            _iCommunicationProxy.RegisterEventHandler(ChannelID, AppReadyEventID, new StringEventHandler(HandleAppReadyEvent));
        }
Esempio n. 2
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);
        }
Esempio n. 3
0
        public void Execute(IRemoteMethodInvoker proxy, object request)
        {
            var json     = request as JObject;
            var rqst     = json.ToObject <TRequest>();
            var response = Execute(rqst);

#if DEBUG
            Console.WriteLine(response);
#endif
            proxy.InvokeAsync(CX.RelayResponseMethodName, response.CorrelationId, response).Wait();
        }
Esempio n. 4
0
 public XShellProxy(IRemoteMethodInvoker remoteMethodInvoker, string shellName, string appCommunicationProxyName)
 {
     _remoteInvoker = remoteMethodInvoker;
     _receiver      = appCommunicationProxyName;
     ShellName      = shellName;
 }
Esempio n. 5
0
 /// <summary>
 /// Initialize,used by AppManager
 /// </summary>
 /// <param name="communicationProxy"></param>
 public void Initialize(IRemoteMethodInvoker iRemoteMethodInvoker)
 {
     _remoteInvoker = iRemoteMethodInvoker;
     _remoteInvoker.RegisterServiceObject <IShellManager>(this);
 }
Esempio n. 6
0
 public void Execute(IRemoteMethodInvoker proxy, object request)
 {
     throw new NotImplementedException();
 }