public GoEventArgs(cred _cred, List <string> _files, string _container, int _numberSimsPerJob, int _hoursPerJob) { cred = _cred; files = _files; container = _container; numberSimsPerJob = _numberSimsPerJob; hoursPerJob = _hoursPerJob; }
public async void getRemoteVersions(cred cred) { List <string> versions = new List <string>(); try { versions = await Task.Run <List <string> >(() => { server.cred = cred; return(server.getRemoteVersions()); }); } catch (Exception e) { logMessage(e.Message); } Application.Invoke(delegate { MainClass.win.OnGetRemoteVersionsFinished(versions); }); }
public ApsimHPC.cred getCreds() { ApsimHPC.cred cred = new ApsimHPC.cred(); if (this.radiobutton1.Active) { cred.remoteHost = "tinaroo.rcc.uq.edu.au"; } else if (this.radiobutton2.Active) { cred.remoteHost = "awoonga.qriscloud.org.au"; } cred.username = this.username.Text; cred.password = this.password.Text; Configuration.Instance.SetSetting("remoteCluster", cred.remoteHost); Configuration.Instance.SetSetting("remoteUser", cred.username); return(cred); }