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