OctoTorrent.Client.Peer.Peer C# (CSharp) Method

Peer() public method

public Peer ( string peerId, Uri connectionUri, EncryptionTypes encryption = EncryptionTypes.All ) : Common.System
peerId string
connectionUri System.Uri
encryption EncryptionTypes
return Common.System
        public Peer(string peerId, Uri connectionUri, EncryptionTypes encryption = EncryptionTypes.All)
        {
            if (peerId == null)
                throw new ArgumentNullException("peerId");
            if (connectionUri == null)
                throw new ArgumentNullException("connectionUri");

            _connectionUri = connectionUri;
            Encryption = encryption;
            PeerId = peerId;
        }