public override void DoWork() { IRemoteMethodInvoker remoteInvoker = _bootstrapper.IoC.Container.GetExportedValue <IRemoteMethodInvoker>(); _appManager = new AppManager(); _appManager.Initialize(remoteInvoker); _iCommunicationProxy.RegisterEventHandler(ChannelID, AppReadyEventID, new StringEventHandler(HandleAppReadyEvent)); }
/// <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); }
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(); }
public XShellProxy(IRemoteMethodInvoker remoteMethodInvoker, string shellName, string appCommunicationProxyName) { _remoteInvoker = remoteMethodInvoker; _receiver = appCommunicationProxyName; ShellName = shellName; }
/// <summary> /// Initialize,used by AppManager /// </summary> /// <param name="communicationProxy"></param> public void Initialize(IRemoteMethodInvoker iRemoteMethodInvoker) { _remoteInvoker = iRemoteMethodInvoker; _remoteInvoker.RegisterServiceObject <IShellManager>(this); }
public void Execute(IRemoteMethodInvoker proxy, object request) { throw new NotImplementedException(); }