private void UpdateCompleted(object sender, UpdateSecurityAssociationsCompletedEventArgs e) { if (!e.Result.HasError) { UpdateSuccessful(); } else { SuperMessageBoxService.ShowError("Error Occurred", "An error occurred while applying the Glyma permissions."); } }
private void ClientOnUpdateSecurityAssociationsCompleted(object sender, UpdateSecurityAssociationsCompletedEventArgs e) { if (e.UserState is Guid) { var guid = (Guid)e.UserState; if (ObjectDictionary.ContainsKey(guid) && UpdateSecurityAssociationsCompletedEventHandlers.ContainsKey(guid)) { UpdateSecurityAssociationsCompletedEventHandlers[guid](ObjectDictionary[guid], e); UpdateSecurityAssociationsCompletedEventHandlers.Remove(guid); ObjectDictionary.Remove(guid); } } }
private void ClientOnUpdateSecurityAssociationsCompleted(object sender, UpdateSecurityAssociationsCompletedEventArgs e) { if (e.UserState is Guid) { var guid = (Guid) e.UserState; if (ObjectDictionary.ContainsKey(guid) && UpdateSecurityAssociationsCompletedEventHandlers.ContainsKey(guid)) { UpdateSecurityAssociationsCompletedEventHandlers[guid](ObjectDictionary[guid], e); UpdateSecurityAssociationsCompletedEventHandlers.Remove(guid); ObjectDictionary.Remove(guid); } } }