PeerNameRegistration PeerNameRegistration PeerNameRegistration PeerNameRegistration Class

Definition

Registers a PeerName in a Cloud or set of clouds.

public ref class PeerNameRegistration : IDisposable, System::Runtime::Serialization::ISerializable
[Serializable]
public class PeerNameRegistration : IDisposable, System.Runtime.Serialization.ISerializable
type PeerNameRegistration = class
    interface IDisposable
    interface ISerializable
Public Class PeerNameRegistration
Implements IDisposable, ISerializable
Inheritance
PeerNameRegistrationPeerNameRegistrationPeerNameRegistrationPeerNameRegistration
Attributes
SerializableAttribute
Implements

Remarks

Registration creates (or updates) all the information that is associated with a PeerName in a peer cloud or clouds.

It is possible to have multiple PeerNameRegistration objects for the same peer name. In such a case, if the peer name is secured, each instance represents PeerNameRegistration in a different cloud. However, if the peer name is not secured, it can be registered in the same cloud multiple times, providing that each registration is from a different process.

Constructors

PeerNameRegistration() PeerNameRegistration() PeerNameRegistration() PeerNameRegistration()

Initializes a new default instance of the PeerNameRegistration class.

PeerNameRegistration(PeerName, Int32) PeerNameRegistration(PeerName, Int32) PeerNameRegistration(PeerName, Int32) PeerNameRegistration(PeerName, Int32)

Initializes a new instance of the PeerNameRegistration class with the specified name and port number.

PeerNameRegistration(PeerName, Int32, Cloud) PeerNameRegistration(PeerName, Int32, Cloud) PeerNameRegistration(PeerName, Int32, Cloud) PeerNameRegistration(PeerName, Int32, Cloud)

Initializes a new instance of the PeerNameRegistration class with the specified peer name, port number, and Cloud.

PeerNameRegistration(SerializationInfo, StreamingContext) PeerNameRegistration(SerializationInfo, StreamingContext) PeerNameRegistration(SerializationInfo, StreamingContext) PeerNameRegistration(SerializationInfo, StreamingContext)

Initializes a new serializable PeerNameRegistration object.

Properties

Cloud Cloud Cloud Cloud

Gets or sets information in a Cloud into which this PeerName object will be registered.

Comment Comment Comment Comment

Gets or sets additional information about the PeerName object that will be registered with the Cloud.

Data Data Data Data

Gets or sets application-defined binary data for the PeerNameRegistration object.

EndPointCollection EndPointCollection EndPointCollection EndPointCollection

Gets the collection of network endpoints for which the associated peer name is registered.

PeerName PeerName PeerName PeerName

Gets or sets the peer name to register with a peer cloud.

Port Port Port Port

Gets or sets the TCP/IP port number used by the peer being registered into the PeerNameRegistration object.

UseAutoEndPointSelection UseAutoEndPointSelection UseAutoEndPointSelection UseAutoEndPointSelection

Gets or sets a value that specifies whether to use automatic endpoint selection when traversing a peer mesh or Cloud.

Methods

Dispose() Dispose() Dispose() Dispose()

Releases all resources used by the PeerNameRegistration object.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases the unmanaged resources and optionally releases the managed resources used by the PeerNameRegistration object.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Populates a serialization information object with the data needed to serialize the PeerNameRegistration instance.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsRegistered() IsRegistered() IsRegistered() IsRegistered()

Gets or sets whether the peer name specified in the PeerName property is registered with a specific Cloud on a host.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Start() Start() Start() Start()

Registers the PeerName into the Cloud. If no EndPointCollection is specified, automatic address selection is used with the port value specified by the Port property.

Stop() Stop() Stop() Stop()

Unregisters the peer name specified in the PeerName property from all the clouds in which it was registered.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
Update() Update() Update() Update()

Updates the PeerNameRegistration for a node registered with a specific Cloud. Update is performed using the information specified in the properties.

Explicit Interface Implementations

ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext)

Implements the ISerializable interface and returns the data needed to serialize the PeerNameRegistration instance.

Applies to