Edytuj

Udostępnij za pośrednictwem


PeerNode Class

Definition

Defines the instance of a peer node used by an application participating in a specific peer mesh.

public ref class PeerNode sealed : System::ServiceModel::IOnlineStatus
public sealed class PeerNode : System.ServiceModel.IOnlineStatus
type PeerNode = class
    interface IOnlineStatus
Public NotInheritable Class PeerNode
Implements IOnlineStatus
Inheritance
PeerNode
Implements

Remarks

A peer node can host multiple peer channels within the mesh as long as they share a common URI and host name in the EndpointAddress supplied to the binding for each channel.

If two or more peer channels defined for a peer node are created with separate bindings, then the Port, ListenIPAddress, and Resolver properties must be identical on all bindings.

If a subsequent channel binding is created after the first one for the same peer node instance, then the MaxReceivedMessageSize property on this and subsequent bindings must be less than or equal to the value of MaxReceivedMessageSize property as set on the first channel binding.

Properties

IsOnline

Gets a value indicating whether the peer node is online and able to send messages to neighboring nodes in the peer mesh.

MessagePropagationFilter

Gets or sets a custom filter for messages received over the peer channel.

Port

Gets the network port on which the peer node is listening.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
RefreshConnection()

Refreshes the connection with the peer mesh.

ToString()

Provides a string representation of a peer node.

Events

Offline

Signals when the peer node goes offline from the peer mesh.

Online

Signals when a peer node comes online within the peer mesh.

Applies to