Example #1
0
 void NotifyExtensions(ExtensionEvent @event, object obj)
 {
     foreach (var m in extensions)
     {
         m.Value.OnEvent(@event, obj);
     }
 }
Example #2
0
 // got a response back from a request sent to the server
 private void OnResponse(ExtensionEvent e)
 {
     // just pass the info through
     if (ExtensionEvent != null)
     {
         ExtensionEvent(new Dictionary <string, object>()
         {
             { "command", e.Command }, { "subcommand", e.SubCommand }, { "data", e.Data }
         });
     }
 }
Example #3
0
        public void OnEvent(ExtensionEvent @event, object obj)
        {
            if (@event == ExtensionEvent.Loaded)
            {
                var currentDomain = AppDomain.CurrentDomain;
                var location      = Assembly.GetExecutingAssembly().Location;
                var assemblyDir   = Path.GetDirectoryName(location);

                if (assemblyDir != null)
                {
                    currentDomain.AssemblyResolve += (sender, arg) =>
                    {
                        if (arg.Name.StartsWith("Microsoft.Z3,", StringComparison.OrdinalIgnoreCase))
                        {
                            string fileName = Path.Combine(assemblyDir, string.Format("{0}\\Microsoft.Z3.dll", (Environment.Is64BitProcess) ? "x64" : "x86"));
                            return(Assembly.LoadFile(fileName));
                        }

                        return(null);
                    };
                }
            }
        }
Example #4
0
 public void OnEvent(ExtensionEvent @event, object?obj)
 {
 }
 public void OnEvent(ExtensionEvent e, object obj)
 {
 }
Example #6
0
 public void OnEvent(ExtensionEvent @event, object obj)
 {
     // We don't care about any events
 }
Example #7
0
		public void OnEvent(ExtensionEvent @event, object obj) {
			// We don't care about any events
		}
Example #8
0
 public static void SendEvent(ExtensionEvent id, params (string, object)[] props) =>
Example #9
0
 private void OnResponse(ExtensionEvent e)
 {
     Console.WriteLine(e.Command);
 }
Example #10
0
		public void OnEvent(ExtensionEvent @event, object obj) {
		}
Example #11
0
		void NotifyExtensions(ExtensionEvent @event, object obj) {
			foreach (var m in extensions)
				m.Value.OnEvent(@event, obj);
		}