Aggiunto file di conf YAML + NuGet package

This commit is contained in:
Samuele E. Locatelli
2019-03-07 17:10:42 +01:00
parent 7463ea98bb
commit 86cfd536ec
6 changed files with 89 additions and 48 deletions
+25 -4
View File
@@ -119,9 +119,9 @@ namespace TestClient
sb.AppendLine("-------------------------");
sb.AppendLine("isAuth: " + reqStatus.isAuth);
sb.AppendLine("isHmiEnrolled: " + reqStatus.isHmiEnrolled);
sb.AppendLine("cloudConnection: " + reqStatus.cloudStatus);
sb.AppendLine("localConnection: " + reqStatus.localStatus);
sb.AppendLine("callSuccess: " + reqStatus.callResult);
sb.AppendLine("cloudConnection: " + reqStatus.CloudStatusOk);
sb.AppendLine("localConnection: " + reqStatus.LocalStatusOk);
sb.AppendLine("callSuccess: " + reqStatus.CallResultOk);
sb.AppendLine("-------------------------");
lblReqStatus.Text = sb.ToString();
sb.AppendLine("");
@@ -219,7 +219,28 @@ namespace TestClient
await Task.Run(() =>
{
MCC = new MConnectClient(txtMConnectID.Text.Trim(), txtClientID.Text.Trim(), param);
reqStatus = MCC.initSDKAsync();
// elimino eventuali cancel presenti...
if (_cts.IsCancellationRequested)
{
_cts = new CancellationTokenSource();
}
CancellationToken token = _cts.Token;
// gestione progress...
var progressHandler = new Progress<Result>(value =>
{
#if false
// mostro i dati SPECIFICI x AUTH...
updateAuthData(value);
#endif
});
var progress = progressHandler as IProgress<Result>;
var taskResult = MCC.initSDKAsync(token, progress);
#if false
reqStatus = MCC.initSDKAsync(token, progress);
#endif
// sistemo retVal
saveTokenResp();