예제 #1
0
 public static VpnState WithError(this VpnState state, VpnError error)
 {
     return(new VpnState(
                state.Status,
                error,
                state.LocalIp,
                state.RemoteIp,
                state.Protocol));
 }
예제 #2
0
 public static VpnState WithRemoteIp(this VpnState state, string remoteIp)
 {
     return(new VpnState(
                state.Status,
                state.Error,
                state.LocalIp,
                remoteIp,
                state.Protocol));
 }