/// <summary> /// Registers the standard network protocols for IPFS. /// </summary> static NetworkProtocol() { NetworkProtocol.Register <Ipv4NetworkProtocol>(); NetworkProtocol.Register <Ipv6NetworkProtocol>(); NetworkProtocol.Register <TcpNetworkProtocol>(); NetworkProtocol.Register <UdpNetworkProtocol>(); NetworkProtocol.Register <IpfsNetworkProtocol>(); NetworkProtocol.Register <P2pNetworkProtocol>(); NetworkProtocol.Register <HttpNetworkProtocol>(); NetworkProtocol.Register <HttpsNetworkProtocol>(); NetworkProtocol.Register <DccpNetworkProtocol>(); NetworkProtocol.Register <SctpNetworkProtocol>(); NetworkProtocol.Register <WsNetworkProtocol>(); NetworkProtocol.Register <Libp2pWebrtcStarNetworkProtocol>(); NetworkProtocol.Register <UdtNetworkProtocol>(); NetworkProtocol.Register <UtpNetworkProtocol>(); NetworkProtocol.Register <OnionNetworkProtocol>(); NetworkProtocol.Register <Libp2pWebrtcDirectNetworkProtocol>(); NetworkProtocol.Register <P2pCircuitNetworkProtocol>(); NetworkProtocol.Register <DnsNetworkProtocol>(); NetworkProtocol.Register <Dns4NetworkProtocol>(); NetworkProtocol.Register <Dns6NetworkProtocol>(); NetworkProtocol.Register <DnsAddrNetworkProtocol>(); NetworkProtocol.Register <WssNetworkProtocol>(); NetworkProtocol.Register <IpcidrNetworkProtocol>(); }
/// <summary> /// Registers the standard network protocols for IPFS. /// </summary> static NetworkProtocol() { NetworkProtocol.Register <Ipv4NetworkProtocol>(); NetworkProtocol.Register <Ipv6NetworkProtocol>(); NetworkProtocol.Register <TcpNetworkProtocol>(); NetworkProtocol.Register <UdpNetworkProtocol>(); NetworkProtocol.Register <IpfsNetworkProtocol>(); NetworkProtocol.Register <HttpNetworkProtocol>(); NetworkProtocol.Register <HttpsNetworkProtocol>(); NetworkProtocol.Register <DccpNetworkProtocol>(); NetworkProtocol.Register <SctpNetworkProtocol>(); NetworkProtocol.Register <WsNetworkProtocol>(); NetworkProtocol.Register <Libp2pWebrtcStarNetworkProtocol>(); NetworkProtocol.Register <UdtNetworkProtocol>(); NetworkProtocol.Register <UtpNetworkProtocol>(); NetworkProtocol.Register <OnionNetworkProtocol>(); }
public void Register_Code_Already_Exists() { ExceptionAssert.Throws <ArgumentException>(() => NetworkProtocol.Register <CodeExists>()); }