Пример #1
0
        public VpnStateChangedEventArgs(VpnState state, VpnError error, bool networkBlocked)
        {
            Ensure.NotNull(state, nameof(state));

            State          = state;
            Error          = error;
            NetworkBlocked = networkBlocked;
        }
Пример #2
0
        public VpnStateChangedEventArgs(VpnState state, VpnError error, bool networkBlocked, VpnProtocol protocol = VpnProtocol.Auto)
        {
            Ensure.NotNull(state, nameof(state));

            State          = state;
            Error          = error;
            NetworkBlocked = networkBlocked;
            Protocol       = protocol;
        }