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