7 references to WeakEventHandler
Microsoft.CodeAnalysis.Workspaces (7)
Options\GlobalOptionService.cs (2)
257public void AddOptionChangedHandler(object target, WeakEventHandler<OptionChangedEventArgs> handler) 262public void RemoveOptionChangedHandler(object target, WeakEventHandler<OptionChangedEventArgs> handler)
Options\IGlobalOptionService.cs (2)
69void AddOptionChangedHandler(object target, WeakEventHandler<OptionChangedEventArgs> handler); 71void RemoveOptionChangedHandler(object target, WeakEventHandler<OptionChangedEventArgs> handler);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WeakEvent`1.cs (3)
25private readonly EnumerableConditionalWeakTable<object, WeakEventHandler<TEventArgs>> _handlers = new(); 27public void AddHandler(object target, WeakEventHandler<TEventArgs> handler) 42public void RemoveHandler(object target, WeakEventHandler<TEventArgs> handler)