private static void firstInstall() { TEEConnector te = new TEEConnector(); try { te.DALCreatSession(); string userid = "{c7cdf2ed-cc9e-45c9-b042-9ca240e207a8}"; string userName = "******"; te.WriteKeyToTEE(userid, userName); } finally { te.DALCloseSession(); } UpdateAppSettings("installed", "true"); }
private void SetUserAndPassword() { TEEConnector te = new TEEConnector(); try { te.DALCreatSession(); string userid = "{c7cdf2ed-cc9e-45c9-b042-9ca240e207a8}"; //string userName = "******"; // te.WriteKeyToTEE(userid, userName); KeyValuePair <string, string> a = te.CheckIsAuthorized(); userName = a.Key; password = a.Value; } finally { te.DALCloseSession(); } }