Exemplo n.º 1
0
 public static void FireActionsForDoc(string docIdentifier, JsParserEvent args)
 {
     lock (_lockObj)
     {
         if (_subscribers.ContainsKey(docIdentifier))
         {
             var list = _subscribers[docIdentifier];
             foreach (var action in list)
             {
                 try
                 {
                     action(args);
                 }
                 catch {}
             }
         }
     }
 }
Exemplo n.º 2
0
 public static void FireActionsForDoc(string docIdentifier, JsParserEvent args)
 {
     lock(_lockObj)
     {
         if (_subscribers.ContainsKey(docIdentifier))
         {
             var list = _subscribers[docIdentifier];
             foreach(var action in list)
             {
                 try
                 {
                     action(args);
                 }
                 catch {}
             }
         }
     }
 }
        public void JsParserEventsHandler(JsParserEvent args)
        {
            _codeProvider = args.Code;

            if (args is JsParserErrorsNotificationArgs)
            {
                SetErrors(((JsParserErrorsNotificationArgs)args));
                return;
            }
        }