OpenHome.Net.Core.NetworkAdapter.AddRef C# (CSharp) Method

AddRef() public method

Claim a reference to the network adapter.
Can only be called from code that can guarantee another reference is already held. Each call to AddRef() must later have exactly one matching call to RemoveRef().
public AddRef ( string aCookie ) : void
aCookie string
return void
        public void AddRef(string aCookie)
        {
            IntPtr cookie = InteropUtils.StringToHGlobalUtf8(aCookie);
            OhNetNetworkAdapterAddRef(iHandle, cookie);
            AddManagedCookie(aCookie, cookie);
        }