public Guid CreateAppCalloutFilter(DisplayData displayData, Layer layer, uint weight, Callout callout, ProviderContext providerContext, string appPath, bool persistent = false, Guid id = new Guid()) { Guid filterId = IpFilterNative.CreateAppFilter( Session.Handle, ProviderId, Id, displayData, layer, Action.Callout, weight, callout.Id, providerContext.Id, appPath, persistent, id); AddFilter(filterId); return(filterId); }
public Guid CreateLayerCalloutFilter( DisplayData displayData, Layer layer, uint weight, Callout callout, ProviderContext providerContext) { var filterId = IpFilterNative.CreateLayerFilter( Session.Handle, ProviderId, Id, displayData, layer, Action.Callout, weight, callout.Id, providerContext.Id); AddFilter(filterId); return(filterId); }
public Guid CreateRemoteNetworkIPv4CalloutFilter( DisplayData displayData, Layer layer, uint weight, Callout callout, ProviderContext providerContext, NetworkAddress addr) { var filterId = IpFilterNative.CreateRemoteNetworkIPv4Filter( Session.Handle, ProviderId, Id, displayData, layer, Action.Callout, weight, callout.Id, providerContext.Id, addr); AddFilter(filterId); return(filterId); }
public void DestroyProviderContext(ProviderContext context) { IpFilterNative.DestroyProviderContext( Session.Handle, context.Id); }