private async Task PostMessageAsync(PostingStatus status)
{
await this.workerSemaphore.WaitAsync();
try
{
var progress = new Progress<string>(x => this.StatusLabel.Text = x);
await this.PostMessageAsyncInternal(progress, this.workerCts.Token, status);
}
catch (WebApiException ex)
{
this._myStatusError = true;
this.StatusLabel.Text = $"Err:{ex.Message}(PostMessage)";
}
finally
{
this.workerSemaphore.Release();
}
}