public Guid BlockOutsideDns(DisplayData displayData, Layer layer, uint weight, Callout callout, uint index) { var filterId = IpFilterNative.BlockOutsideDns( Session.Handle, ProviderId, Id, displayData, layer, Action.Callout, weight, callout.Id, index); AddFilter(filterId); return(filterId); }
public Guid BlockOutsideDns(DisplayData displayData, Layer layer, uint weight, Guid calloutGuid, uint index, bool persistent = false) { Guid filterId = IpFilterNative.BlockOutsideDns( Session.Handle, ProviderId, Id, displayData, layer, Action.Callout, weight, calloutGuid, index, (uint)(persistent ? 1 : 0)); AddFilter(filterId); return(filterId); }