private static event EventHandler<PackageManagerEventArgs> s_clearDataEventHandler;
private static readonly object s_pkgEventLock = new object();
- private static Interop.PackageManager.PackageManagerEventCallback s_packageManagerEventCallback;
+ private static Interop.PackageManager.PackageManagerEventCallback s_packageManagerEventCallback = new Interop.PackageManager.PackageManagerEventCallback(InternalEventCallback);
private static Dictionary<IntPtr, Interop.PackageManager.PackageManagerTotalSizeInfoCallback> s_totalSizeInfoCallbackDict = new Dictionary<IntPtr, Interop.PackageManager.PackageManagerTotalSizeInfoCallback>();
private static int s_callbackId = 0;
return;
var err = Interop.PackageManager.ErrorCode.None;
- s_packageManagerEventCallback = new Interop.PackageManager.PackageManagerEventCallback(InternalEventCallback);
if (!Handle.IsInvalid)
{
return;
}
- s_packageManagerEventCallback = null;
-
lock (Handle)
{
var err = Interop.PackageManager.PackageManagerUnsetEvent(Handle);