コード例 #1
0
 internal ConnectivityParameters(ConnectivitySource source, ConnectivityDestination destination, Protocol?protocol, ProtocolConfiguration protocolConfiguration, IPVersion?preferredIPVersion)
 {
     Source                = source;
     Destination           = destination;
     Protocol              = protocol;
     ProtocolConfiguration = protocolConfiguration;
     PreferredIPVersion    = preferredIPVersion;
 }
コード例 #2
0
        public ConnectivityParameters(ConnectivitySource source, ConnectivityDestination destination)
        {
            if (source == null)
            {
                throw new ArgumentNullException(nameof(source));
            }
            if (destination == null)
            {
                throw new ArgumentNullException(nameof(destination));
            }

            Source      = source;
            Destination = destination;
        }