private void OnMissingKey(string language, string @namespace, string key, List <string> possibleKeys) { if (MissingKey == null && MissingKeyHandlers.Count == 0) { return; } var args = new MissingKeyEventArgs(language, @namespace, key, possibleKeys.ToArray()); MissingKey?.Invoke(this, args); foreach (var missingKeyHandler in MissingKeyHandlers) { missingKeyHandler.HandleMissingKeyAsync(this, args); } }
private void NotifyMissingKey(MissingKeyException ex, IItem parentItem) { MissingKey?.Invoke(this, new MissingKeyExceptionHandlerArgs(ex, parentItem)); }