/// <summary> /// Update Transpiler Platform - /// </summary> public void SSOTMEAdminUpdateTranspilerPlatform(System.String content, DMProxy proxy) { var payload = this.CreatePayload(); payload.Content = content; this.SSOTMEAdminUpdateTranspilerPlatform(payload, proxy); }
/// <summary> /// Command Line Transpile - /// </summary> public void AccountHolderCommandLineTranspile(System.String content, DMProxy proxy) { var payload = this.CreatePayload(); payload.Content = content; this.AccountHolderCommandLineTranspile(payload, proxy); }
/// <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); }
/// <summary> /// Update Transpiler Version - /// </summary> public void AccountHolderUpdateTranspilerVersion(System.String content, DMProxy proxy) { var payload = this.CreatePayload(); payload.Content = content; this.AccountHolderUpdateTranspilerVersion(payload, proxy); }
/// <summary> /// Get Transpiler List - /// </summary> public void AccountHolderGetTranspilerList(System.String content, DMProxy proxy) { var payload = this.CreatePayload(); payload.Content = content; this.AccountHolderGetTranspilerList(payload, proxy); }
/// <summary> /// Login - /// </summary> public void AccountHolderLogin(System.String content, DMProxy proxy) { var payload = this.CreatePayload(); payload.Content = content; this.AccountHolderLogin(payload, proxy); }
/// <summary> /// Instance Stopped - /// </summary> public void TranspilerHostInstanceStopped(System.String content, DMProxy proxy) { var payload = this.CreatePayload(); payload.Content = content; this.TranspilerHostInstanceStopped(payload, proxy); }
/// <summary> /// Offline - /// </summary> public void TranspilerHostOffline(System.String content, DMProxy proxy) { var payload = this.CreatePayload(); payload.Content = content; this.TranspilerHostOffline(payload, proxy); }
/// <summary> /// Request Stop Host - /// </summary> public void AccountHolderRequestStopHost(System.String content, DMProxy proxy) { var payload = this.CreatePayload(); payload.Content = content; this.AccountHolderRequestStopHost(payload, proxy); }
/// <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); }
/// <summary> /// Ping - /// </summary> public void SSOTMEAdminPing(System.String content, DMProxy proxy) { var payload = this.CreatePayload(); payload.Content = content; this.SSOTMEAdminPing(payload, proxy); }
/// <summary> /// Validate Auth Token - /// </summary> public void PublicUserValidateAuthToken(System.String content, DMProxy proxy) { var payload = this.CreatePayload(); payload.Content = content; this.PublicUserValidateAuthToken(payload, proxy); }
/// <summary> /// Recover - /// </summary> public void PublicUserRecover(System.String content, DMProxy proxy) { var payload = this.CreatePayload(); payload.Content = content; this.PublicUserRecover(payload, proxy); }
/// <summary> /// Add Platform Category - /// </summary> public void SSOTMEAdminAddPlatformCategory(System.String content, DMProxy proxy) { var payload = this.CreatePayload(); payload.Content = content; this.SSOTMEAdminAddPlatformCategory(payload, proxy); }
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(); } }
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; } }
/// <summary> /// Get All Platform Data - /// </summary> public void PublicUserGetAllPlatformData(DMProxy proxy) { this.PublicUserGetAllPlatformData(this.CreatePayload(), proxy); }
/// <summary> /// Get All Transpilers - /// </summary> public void PublicUserGetAllTranspilers(DMProxy proxy) { this.PublicUserGetAllTranspilers(this.CreatePayload(), proxy); }
/// <summary> /// Recover - /// </summary> public void PublicUserRecover(SSOTMEPayload payload, DMProxy proxy) { payload.IsDirectMessage = true; this.SendMessage(payload, "Recover - ", "publicusermic", "ssotmecoordinator.general.publicuser.recover", proxy.RoutingKey); }
/// <summary> /// Recover - /// </summary> public void PublicUserRecover(DMProxy proxy) { this.PublicUserRecover(this.CreatePayload(), proxy); }
/// <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); }
/// <summary> /// Validate Auth Token - /// </summary> public void PublicUserValidateAuthToken(DMProxy proxy) { this.PublicUserValidateAuthToken(this.CreatePayload(), proxy); }
/// <summary> /// Authenticate - /// </summary> public void PublicUserAuthenticate(SSOTMEPayload payload, DMProxy proxy) { payload.IsDirectMessage = true; this.SendMessage(payload, "Authenticate - ", "publicusermic", "ssotmecoordinator.general.publicuser.authenticate", proxy.RoutingKey); }
/// <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); }
/// <summary> /// Command Line Transpile - /// </summary> public void AccountHolderCommandLineTranspile(DMProxy proxy) { this.AccountHolderCommandLineTranspile(this.CreatePayload(), proxy); }
/// <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); }
/// <summary> /// Get All File Types - /// </summary> public void PublicUserGetAllFileTypes(DMProxy proxy) { this.PublicUserGetAllFileTypes(this.CreatePayload(), proxy); }
/// <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); }
/// <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); }
/// <summary> /// Authenticate - /// </summary> public void PublicUserAuthenticate(DMProxy proxy) { this.PublicUserAuthenticate(this.CreatePayload(), proxy); }