public MainWindow() { InitializeComponent(); this.msg = new AuthProxy.STC_MSG(); this.authClient = new AuthClient("authTcp"); }
private void M_auhentifier(AuthProxy.STC_MSG msg) { this.msg = msg; this.msg.op_name = "authentifier"; this.msg.app_name = "Middleware"; this.msg.app_token = "apptoken"; this.msg.app_version = "2.0"; this.msg.op_info = "Demande de service de l'application 1 de version 2.0"; this.msg = this.authClient.Login(this.msg); }
private void M_Decrypter(AuthProxy.STC_MSG msg, object[] file) { STC_MSG msgData = new STC_MSG { op_name = "decrypter", app_name = "Middleware", app_token = "apptoken", app_version = "2.0", op_info = "Demande de service de l'application 1 de version 2.0", data = file }; DisplayResult(msgData.data[0].ToString()); DisplayResult("en cours de traitement..."); try { msgData = this.decryptClient.DecryptFiles(msgData); } catch (Exception e) { throw new Exception("Middleware error " + e.ToString()); } if (msgData.data.Length > 2) { DisplayResult(msgData.data[0].ToString() + ": Traitement terminé !"); /* * Result r = new Result() * { * name = msgData.data[0].ToString(), * text = msgData.data[1].ToString(), * key = msgData.data[2].ToString() * }; * * DisplayResult("Filename = " + r.name + Environment.NewLine + "Text = " + r.text + Environment.NewLine + "Key = " + r.key); */ } }