1 implementation of IAppDomainShutdownListener
PresentationCore (1)
System\Windows\InterOp\D3DImage.cs (1)
27
public class D3DImage : ImageSource,
IAppDomainShutdownListener
9 references to IAppDomainShutdownListener
PresentationCore (9)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\AppDomainShutdownMonitor.cs (6)
26
new HashSet<WeakReference<
IAppDomainShutdownListener
>>();
32
public static void Add(WeakReference<
IAppDomainShutdownListener
> listener)
45
public static void Remove(WeakReference<
IAppDomainShutdownListener
> listener)
65
foreach (WeakReference<
IAppDomainShutdownListener
> weakReference in _listeners)
67
if (weakReference.TryGetTarget(out
var
listener))
74
private static readonly HashSet<WeakReference<
IAppDomainShutdownListener
>> _listeners;
System\Windows\InterOp\D3DImage.cs (3)
67
_listener = new WeakReference<
IAppDomainShutdownListener
>(this);
871
void
IAppDomainShutdownListener
.NotifyShutdown()
918
private WeakReference<
IAppDomainShutdownListener
> _listener;