Show / Hide Table of Contents

Class DifferentAppProtocolVersionException

The exception that is thrown when the version of the Message that Swarm<T> received is different.

Inheritance
Object
DifferentAppProtocolVersionException
Namespace: Libplanet.Net.Transports
Assembly: Libplanet.Net.dll
Syntax
public class DifferentAppProtocolVersionException : Exception

Constructors

| Improve this Doc View Source

DifferentAppProtocolVersionException(SerializationInfo, StreamingContext)

Declaration
protected DifferentAppProtocolVersionException(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info
StreamingContext context
| Improve this Doc View Source

DifferentAppProtocolVersionException(String, AppProtocolVersion, AppProtocolVersion, Boolean)

Initializes a new instance of the DifferentAppProtocolVersionException class.

Declaration
public DifferentAppProtocolVersionException(string message, AppProtocolVersion expectedAppProtocolVersion, AppProtocolVersion actualAppProtocolVersion, bool trusted)
Parameters
Type Name Description
String message

Specifies an .

AppProtocolVersion expectedAppProtocolVersion

The protocol version of the local Swarm<T>.

AppProtocolVersion actualAppProtocolVersion

The protocol version of the BoundPeer that the local Swarm<T> is trying to connect to.

Boolean trusted

Whether actualAppProtocolVersion is signed by a trusted signer.

Properties

| Improve this Doc View Source

ActualApv

The protocol version of the BoundPeer that the Swarm<T> is trying to connect to.

Declaration
public AppProtocolVersion ActualApv { get; }
Property Value
Type Description
AppProtocolVersion
| Improve this Doc View Source

ExpectedApv

The protocol version of the current Swarm<T>.

Declaration
public AppProtocolVersion ExpectedApv { get; }
Property Value
Type Description
AppProtocolVersion
| Improve this Doc View Source

Trusted

Whether ActualApv is signed by a trusted signer.

Declaration
public bool Trusted { get; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

GetObjectData(SerializationInfo, StreamingContext)

Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info
StreamingContext context
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2022 Planetarium