示例#1
0
        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);
        }
示例#2
0
文件: Sublayer.cs 项目: Ifry/win-app
        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);
        }