コード例 #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));
 }