예제 #1
0
 private void AccountHolder_ReplyTo(object sender, SassyMQ.Lib.RabbitMQ.PayloadEventArgs <SSOTMEPayload> e)
 {
     if (e.Payload.IsLexiconTerm(LexiconTermEnum.accountholder_ping_ssotmecoordinator))
     {
         CoordinatorProxy = new DMProxy(e.Payload.DirectMessageQueue);
         Console.WriteLine("Got ping response");
         var payload = AccountHolder.CreatePayload();
         payload.SaveCLIOptions(this);
         payload.TranspileRequest = new TranspileRequest();
         payload.TranspileRequest.ZippedInputFileSet = this.inputFileSetXml.Zip();
         payload.CLIInputFileContents = String.Empty;
         AccountHolder.AccountHolderCommandLineTranspile(payload, CoordinatorProxy);
     }
     else if (e.Payload.IsLexiconTerm(LexiconTermEnum.accountholder_commandlinetranspile_ssotmecoordinator) ||
              (e.Payload.IsLexiconTerm(LexiconTermEnum.accountholder_requesttranspile_ssotmecoordinator)))
     {
         result = e.Payload;
     }
 }