Example #1
0
        /// <summary>
        /// Update Transpiler Platform -
        /// </summary>
        public void SSOTMEAdminUpdateTranspilerPlatform(System.String content, DMProxy proxy)
        {
            var payload = this.CreatePayload();

            payload.Content = content;
            this.SSOTMEAdminUpdateTranspilerPlatform(payload, proxy);
        }
Example #2
0
        /// <summary>
        /// Command Line Transpile -
        /// </summary>
        public void AccountHolderCommandLineTranspile(System.String content, DMProxy proxy)
        {
            var payload = this.CreatePayload();

            payload.Content = content;
            this.AccountHolderCommandLineTranspile(payload, proxy);
        }
Example #3
0
        /// <summary>
        /// Get All Platform Data -
        /// </summary>
        public void PublicUserGetAllPlatformData(System.String content, DMProxy proxy)
        {
            var payload = this.CreatePayload();

            payload.Content = content;
            this.PublicUserGetAllPlatformData(payload, proxy);
        }
Example #4
0
        /// <summary>
        /// Update Transpiler Version -
        /// </summary>
        public void AccountHolderUpdateTranspilerVersion(System.String content, DMProxy proxy)
        {
            var payload = this.CreatePayload();

            payload.Content = content;
            this.AccountHolderUpdateTranspilerVersion(payload, proxy);
        }
Example #5
0
        /// <summary>
        /// Get Transpiler List -
        /// </summary>
        public void AccountHolderGetTranspilerList(System.String content, DMProxy proxy)
        {
            var payload = this.CreatePayload();

            payload.Content = content;
            this.AccountHolderGetTranspilerList(payload, proxy);
        }
Example #6
0
        /// <summary>
        /// Login -
        /// </summary>
        public void AccountHolderLogin(System.String content, DMProxy proxy)
        {
            var payload = this.CreatePayload();

            payload.Content = content;
            this.AccountHolderLogin(payload, proxy);
        }
Example #7
0
        /// <summary>
        /// Instance Stopped -
        /// </summary>
        public void TranspilerHostInstanceStopped(System.String content, DMProxy proxy)
        {
            var payload = this.CreatePayload();

            payload.Content = content;
            this.TranspilerHostInstanceStopped(payload, proxy);
        }
Example #8
0
        /// <summary>
        /// Offline -
        /// </summary>
        public void TranspilerHostOffline(System.String content, DMProxy proxy)
        {
            var payload = this.CreatePayload();

            payload.Content = content;
            this.TranspilerHostOffline(payload, proxy);
        }
Example #9
0
        /// <summary>
        /// Request Stop Host -
        /// </summary>
        public void AccountHolderRequestStopHost(System.String content, DMProxy proxy)
        {
            var payload = this.CreatePayload();

            payload.Content = content;
            this.AccountHolderRequestStopHost(payload, proxy);
        }
Example #10
0
        /// <summary>
        /// Get All File Types -
        /// </summary>
        public void PublicUserGetAllFileTypes(System.String content, DMProxy proxy)
        {
            var payload = this.CreatePayload();

            payload.Content = content;
            this.PublicUserGetAllFileTypes(payload, proxy);
        }
Example #11
0
        /// <summary>
        /// Ping -
        /// </summary>
        public void SSOTMEAdminPing(System.String content, DMProxy proxy)
        {
            var payload = this.CreatePayload();

            payload.Content = content;
            this.SSOTMEAdminPing(payload, proxy);
        }
Example #12
0
        /// <summary>
        /// Validate Auth Token -
        /// </summary>
        public void PublicUserValidateAuthToken(System.String content, DMProxy proxy)
        {
            var payload = this.CreatePayload();

            payload.Content = content;
            this.PublicUserValidateAuthToken(payload, proxy);
        }
Example #13
0
        /// <summary>
        /// Recover -
        /// </summary>
        public void PublicUserRecover(System.String content, DMProxy proxy)
        {
            var payload = this.CreatePayload();

            payload.Content = content;
            this.PublicUserRecover(payload, proxy);
        }
Example #14
0
        /// <summary>
        /// Add Platform Category -
        /// </summary>
        public void SSOTMEAdminAddPlatformCategory(System.String content, DMProxy proxy)
        {
            var payload = this.CreatePayload();

            payload.Content = content;
            this.SSOTMEAdminAddPlatformCategory(payload, proxy);
        }
Example #15
0
 private void PublicUser_ReplyTo(object sender, PayloadEventArgs <SSOTMEPayload> e)
 {
     if (e.Payload.IsLexiconTerm(LexiconTermEnum.publicuser_ping_ssotmecoordinator))
     {
         this.CoordinatorProxy = new DMProxy(e.Payload.DirectMessageQueue);
         var payload = this.PublicUser.CreatePayload();
         payload.EmailAddress = this.emailAddress;
         this.PublicUser.PublicUserAuthenticate(payload, this.CoordinatorProxy);
     }
     else if (e.Payload.IsLexiconTerm(LexiconTermEnum.publicuser_authenticate_ssotmecoordinator))
     {
         Console.WriteLine("We sent an auth key to {0}.", e.Payload.EmailAddress);
         Console.Write("AUTH Code: ");
         e.Payload.AuthToken = Console.ReadLine();
         if (!String.IsNullOrEmpty(e.Payload.AuthToken))
         {
             Console.WriteLine("Validating AUTH Code.  One moment...");
             this.PublicUser.PublicUserValidateAuthToken(e.Payload, this.CoordinatorProxy);
         }
         else
         {
             Console.WriteLine("Aborting. No AUTH Code recieved.");
         }
     }
     else if (e.Payload.IsLexiconTerm(LexiconTermEnum.publicuser_validateauthtoken_ssotmecoordinator))
     {
         if (String.IsNullOrEmpty(e.Payload.Secret))
         {
             Console.WriteLine("AUTH Code Validated Failed.");
         }
         else
         {
             Console.WriteLine("AUTH Code Validated.");
             try
             {
                 var key = SSOTMEKey.GetSSoTmeKey(this.account);
                 key.EmailAddress = e.Payload.EmailAddress;
                 key.Secret       = e.Payload.Secret;
                 SSOTMEKey.SetSSoTmeKey(key, this.account);
             }
             catch (Exception ex)
             {
                 Console.WriteLine("ERROR: {0}", ex.Message);
             }
         }
         Console.WriteLine("Press enter to continue.");
         Console.ReadLine();
         this.PublicUser.Disconnect();
     }
 }
Example #16
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;
     }
 }
Example #17
0
 /// <summary>
 /// Get All Platform Data -
 /// </summary>
 public void PublicUserGetAllPlatformData(DMProxy proxy)
 {
     this.PublicUserGetAllPlatformData(this.CreatePayload(), proxy);
 }
Example #18
0
 /// <summary>
 /// Get All Transpilers -
 /// </summary>
 public void PublicUserGetAllTranspilers(DMProxy proxy)
 {
     this.PublicUserGetAllTranspilers(this.CreatePayload(), proxy);
 }
Example #19
0
 /// <summary>
 /// Recover -
 /// </summary>
 public void PublicUserRecover(SSOTMEPayload payload, DMProxy proxy)
 {
     payload.IsDirectMessage = true;
     this.SendMessage(payload, "Recover - ",
                      "publicusermic", "ssotmecoordinator.general.publicuser.recover", proxy.RoutingKey);
 }
Example #20
0
 /// <summary>
 /// Recover -
 /// </summary>
 public void PublicUserRecover(DMProxy proxy)
 {
     this.PublicUserRecover(this.CreatePayload(), proxy);
 }
Example #21
0
 /// <summary>
 /// Validate Auth Token -
 /// </summary>
 public void PublicUserValidateAuthToken(SSOTMEPayload payload, DMProxy proxy)
 {
     payload.IsDirectMessage = true;
     this.SendMessage(payload, "Validate Auth Token - ",
                      "publicusermic", "ssotmecoordinator.general.publicuser.validateauthtoken", proxy.RoutingKey);
 }
Example #22
0
 /// <summary>
 /// Validate Auth Token -
 /// </summary>
 public void PublicUserValidateAuthToken(DMProxy proxy)
 {
     this.PublicUserValidateAuthToken(this.CreatePayload(), proxy);
 }
Example #23
0
 /// <summary>
 /// Authenticate -
 /// </summary>
 public void PublicUserAuthenticate(SSOTMEPayload payload, DMProxy proxy)
 {
     payload.IsDirectMessage = true;
     this.SendMessage(payload, "Authenticate - ",
                      "publicusermic", "ssotmecoordinator.general.publicuser.authenticate", proxy.RoutingKey);
 }
Example #24
0
 /// <summary>
 /// Get All Platform Data -
 /// </summary>
 public void PublicUserGetAllPlatformData(SSOTMEPayload payload, DMProxy proxy)
 {
     payload.IsDirectMessage = true;
     this.SendMessage(payload, "Get All Platform Data - ",
                      "publicusermic", "ssotmecoordinator.general.publicuser.getallplatformdata", proxy.RoutingKey);
 }
Example #25
0
 /// <summary>
 /// Command Line Transpile -
 /// </summary>
 public void AccountHolderCommandLineTranspile(DMProxy proxy)
 {
     this.AccountHolderCommandLineTranspile(this.CreatePayload(), proxy);
 }
Example #26
0
 /// <summary>
 /// Request Stop Host -
 /// </summary>
 public void AccountHolderRequestStopHost(SSOTMEPayload payload, DMProxy proxy)
 {
     payload.IsDirectMessage = true;
     this.SendMessage(payload, "Request Stop Host - ",
                      "accountholdermic", "ssotmecoordinator.general.accountholder.requeststophost", proxy.RoutingKey);
 }
Example #27
0
 /// <summary>
 /// Get All File Types -
 /// </summary>
 public void PublicUserGetAllFileTypes(DMProxy proxy)
 {
     this.PublicUserGetAllFileTypes(this.CreatePayload(), proxy);
 }
Example #28
0
 /// <summary>
 /// Command Line Transpile -
 /// </summary>
 public void AccountHolderCommandLineTranspile(SSOTMEPayload payload, DMProxy proxy)
 {
     payload.IsDirectMessage = true;
     this.SendMessage(payload, "Command Line Transpile - ",
                      "accountholdermic", "ssotmecoordinator.general.accountholder.commandlinetranspile", proxy.RoutingKey);
 }
Example #29
0
 /// <summary>
 /// Get All File Types -
 /// </summary>
 public void PublicUserGetAllFileTypes(SSOTMEPayload payload, DMProxy proxy)
 {
     payload.IsDirectMessage = true;
     this.SendMessage(payload, "Get All File Types - ",
                      "publicusermic", "ssotmecoordinator.general.publicuser.getallfiletypes", proxy.RoutingKey);
 }
Example #30
0
 /// <summary>
 /// Authenticate -
 /// </summary>
 public void PublicUserAuthenticate(DMProxy proxy)
 {
     this.PublicUserAuthenticate(this.CreatePayload(), proxy);
 }