private async void _client_CredentialHolderChanged(object sender, CredentialHolderChangedEventArgs e) { // Fetch the updated credential holder asynchronously before calling FireCredentialHoldersChanged try { var credentialHolderDecriptor = await _client.GetCredentialHolderAsync(e.CredentialHolderId); if (credentialHolderDecriptor != null) { var credentialHolder = TypeConverter.ToACCredentialHolder(credentialHolderDecriptor, _systemProperties); FireCredentialHoldersChanged(new[] { credentialHolder }); } } catch (DemoApplicationClientException ex) { ACUtil.Log(true, "DemoACPlugin.CredentialHolderManager", "Error updating credential holder: " + ex.Message); } }