public ProviderContext CreateProviderContext(DisplayData displayData, byte[] data) { var id = IpFilterNative.CreateProviderContext( Session.Handle, ProviderId, displayData, data); return(new ProviderContext(id)); }
public ProviderContext CreateProviderContext(DisplayData displayData, byte[] data, bool persistent = false, Guid id = new Guid()) { var providerContextId = IpFilterNative.CreateProviderContext( Session.Handle, ProviderId, displayData, data, persistent, id); return(new ProviderContext(providerContextId)); }