Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 private void NotifyMissingKey(MissingKeyException ex, IItem parentItem)
 {
     MissingKey?.Invoke(this, new MissingKeyExceptionHandlerArgs(ex, parentItem));
 }