Exemple #1
0
        protected override void OnReplyTo(SSOTMEPayload payload)
        {
            base.OnReplyTo(payload);

            if (payload.IsLexiconTerm(LexiconTermEnum.accountholder_ping_ssotmecoordinator))
            {
                this.ReplyProxy = new DMProxy(payload.DirectMessageQueue);
                this.AccountHolderLogin(this.ReplyProxy);
            }
            else if (payload.IsLexiconTerm(LexiconTermEnum.accountholder_login_ssotmecoordinator))
            {
                Console.WriteLine("Connected account");
            }
        }
Exemple #2
0
        protected override void CheckRouting(SSOTMEPayload payload, bool isDirectMessage)
        {
            // if (payload.IsDirectMessage && !isDirectMessage) return;

            try {
                if (payload.IsLexiconTerm(LexiconTermEnum.ssotmecoordinator_transpileronline_publicuser))
                {
                    this.OnSSOTMECoordinatorTranspilerOnlineReceived(payload);
                }

                else if (payload.IsLexiconTerm(LexiconTermEnum.ssotmecoordinator_transpileroffline_publicuser))
                {
                    this.OnSSOTMECoordinatorTranspilerOfflineReceived(payload);
                }
            } catch (Exception ex) {
                payload.Exception = ex;
            }
            this.Reply(payload);
        }
        protected override void CheckRouting(SSOTMEPayload payload, bool isDirectMessage)
        {
            // if (payload.IsDirectMessage && !isDirectMessage) return;

            try {
                // And can also hear everything which : TranspilerHost hears.

                if (payload.IsLexiconTerm(LexiconTermEnum.ssotmecoordinator_getinstances_transpilerhost))
                {
                    this.OnSSOTMECoordinatorGetInstancesReceived(payload);
                }

                else if (payload.IsLexiconTerm(LexiconTermEnum.ssotmecoordinator_transpilerequested_transpilerhost))
                {
                    this.OnSSOTMECoordinatorTranspileRequestedReceived(payload);
                }

                else if (payload.IsLexiconTerm(LexiconTermEnum.ssotmecoordinator_stopinstance_transpilerhost))
                {
                    this.OnSSOTMECoordinatorStopInstanceReceived(payload);
                }

                else if (payload.IsLexiconTerm(LexiconTermEnum.ssotmecoordinator_stophost_transpilerhost))
                {
                    this.OnSSOTMECoordinatorStopHostReceived(payload);
                }

                // And can also hear everything which : AccountHolder hears.

                // And can also hear everything which : PublicUser hears.

                if (payload.IsLexiconTerm(LexiconTermEnum.ssotmecoordinator_transpileronline_publicuser))
                {
                    this.OnSSOTMECoordinatorTranspilerOnlineReceived(payload);
                }

                else if (payload.IsLexiconTerm(LexiconTermEnum.ssotmecoordinator_transpileroffline_publicuser))
                {
                    this.OnSSOTMECoordinatorTranspilerOfflineReceived(payload);
                }
            } catch (Exception ex) {
                payload.Exception = ex;
            }
            this.Reply(payload);
        }