public void Dispose() { if (FBrowser != null) { FBrowser.Close(); FBrowserDetachedEvent.WaitOne(); lock (FLock) { FBrowser.Dispose(); FBrowser = null; FTextureResource.Dispose(); } FBrowserAttachedEvent.Dispose(); FBrowserDetachedEvent.Dispose(); } if (FMouseSubscription != null) { FMouseSubscription.Dispose(); FMouseSubscription = null; } if (FKeyboardSubscription != null) { FKeyboardSubscription.Dispose(); FKeyboardSubscription = null; } }
public void Dispose() { FBrowserHost.CloseBrowser(true); FBrowserDetachedEvent.WaitOne(); FBrowserAttachedEvent.Dispose(); FBrowserDetachedEvent.Dispose(); if (FMouseSubscription != null) { FMouseSubscription.Dispose(); FMouseSubscription = null; } if (FKeyboardSubscription != null) { FKeyboardSubscription.Dispose(); FKeyboardSubscription = null; } DestroyResources(); }
public void Dispose() { FBrowserHost.CloseBrowser(true); FBrowserDetachedEvent.WaitOne(); FBrowserAttachedEvent.Dispose(); FBrowserDetachedEvent.Dispose(); FRequestContext.Dispose(); if (FMouseSubscription != null) { FMouseSubscription.Dispose(); FMouseSubscription = null; } if (FKeyboardSubscription != null) { FKeyboardSubscription.Dispose(); FKeyboardSubscription = null; } }