private void OnSecurityOriginListAcquired(IntPtr list) { WebSecurityOriginList originList = new WebSecurityOriginList(list, true); securityOriginListAcquiredCallback?.Invoke(originList); originList.Dispose(); }
private void OnSecurityOriginListAcquired(IntPtr alist) { if (securityOriginList != null) { securityOriginList.Dispose(); } securityOriginList = new WebSecurityOriginList(alist, true); List <WebSecurityOrigin> originList = new List <WebSecurityOrigin>(); for (uint i = 0; i < securityOriginList.ItemCount; i++) { originList.Add(securityOriginList.GetItemAtIndex(i)); } securityOriginListAcquiredCallback?.Invoke(originList); }