Ejemplo n.º 1
0
 public static VpnState WithError(this VpnState state, VpnError error)
 {
     return(new VpnState(
                state.Status,
                error,
                state.LocalIp,
                state.RemoteIp,
                state.Protocol));
 }
Ejemplo n.º 2
0
 public static VpnState WithRemoteIp(this VpnState state, string remoteIp)
 {
     return(new VpnState(
                state.Status,
                state.Error,
                state.LocalIp,
                remoteIp,
                state.Protocol));
 }
Ejemplo n.º 3
0
 public static VpnState WithError(this VpnState state, VpnError error)
 {
     return(new(
                state.Status,
                error,
                state.LocalIp,
                state.RemoteIp,
                state.VpnProtocol,
                state.OpenVpnAdapter,
                state.Label));
 }
Ejemplo n.º 4
0
 public static VpnState WithRemoteIp(this VpnState state, string remoteIp, string label)
 {
     return(new(
                state.Status,
                state.Error,
                state.LocalIp,
                remoteIp,
                state.VpnProtocol,
                state.OpenVpnAdapter,
                label));
 }