Beispiel #1
0
        public static Guid CreateRemoteIPv4Filter(
            IntPtr sessionHandle,
            Guid providerId,
            Guid sublayerId,
            DisplayData displayData,
            Layer layer,
            Action action,
            uint weight,
            Guid calloutId,
            Guid providerContextId,
            string ipAddress)
        {
            var id = Guid.Empty;

            AssertSuccess(() => PInvoke.CreateRemoteIPv4Filter(
                              sessionHandle,
                              ref providerId,
                              ref sublayerId,
                              ref displayData,
                              (uint)layer,
                              (uint)action,
                              weight,
                              ref calloutId,
                              ref providerContextId,
                              ipAddress,
                              ref id));

            return(id);
        }
Beispiel #2
0
        public static Guid CreateRemoteIPv4Filter(
            IntPtr sessionHandle,
            Guid providerId,
            Guid sublayerId,
            DisplayData displayData,
            Layer layer,
            Action action,
            uint weight,
            Guid calloutId,
            Guid providerContextId,
            string ipAddress,
            bool persistent = false,
            Guid id         = new Guid())
        {
            AssertSuccess(() => PInvoke.CreateRemoteIPv4Filter(
                              sessionHandle,
                              ref providerId,
                              ref sublayerId,
                              ref displayData,
                              (uint)layer,
                              (uint)action,
                              weight,
                              ref calloutId,
                              ref providerContextId,
                              ipAddress,
                              (uint)(persistent? 1 : 0),
                              ref id));

            return(id);
        }