public VpnStateChangedEventArgs(VpnState state, VpnError error, bool networkBlocked)
        {
            Ensure.NotNull(state, nameof(state));

            State          = state;
            Error          = error;
            NetworkBlocked = networkBlocked;
        }
Beispiel #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;
        }