PeerNameRegistration PeerNameRegistration PeerNameRegistration PeerNameRegistration Class

定义

在一个 PeerName 或一组群中注册 CloudRegisters a PeerName in a Cloud or set of clouds.

public ref class PeerNameRegistration : IDisposable, System::Runtime::Serialization::ISerializable
[System.Serializable]
public class PeerNameRegistration : IDisposable, System.Runtime.Serialization.ISerializable
type PeerNameRegistration = class
    interface IDisposable
    interface ISerializable
Public Class PeerNameRegistration
Implements IDisposable, ISerializable
继承
PeerNameRegistrationPeerNameRegistrationPeerNameRegistrationPeerNameRegistration
属性
实现

注解

注册将创建 (或更新) 与对等云和云中的PeerName关联的所有信息。Registration creates (or updates) all the information that is associated with a PeerName in a peer cloud or clouds.

可能有多个PeerNameRegistration对象具有相同的对等名称。It is possible to have multiple PeerNameRegistration objects for the same peer name. 在这种情况下, 如果对等名称是安全的, 则PeerNameRegistration每个实例表示在不同的云中。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.

构造函数

PeerNameRegistration() 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)

使用指定的名称和端口号初始化 PeerNameRegistration 类的新实例。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)

使用指定的对等名称、端口号和 Cloud 初始化 PeerNameRegistration 类的新实例。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)

初始化一个新的可序列化 PeerNameRegistration 对象。Initializes a new serializable PeerNameRegistration object.

属性

Cloud Cloud Cloud Cloud

获取或设置要在其中注册此对此 Cloud 对象的 PeerName 中的信息。Gets or sets information in a Cloud into which this PeerName object will be registered.

Comment Comment Comment Comment

获取或设置将要在 PeerName 中注册的 Cloud 对象的其他信息。Gets or sets additional information about the PeerName object that will be registered with the Cloud.

Data Data Data Data

获取或设置 PeerNameRegistration 对象的应用程序定义的二进制数据。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

获取或设置正在 PeerNameRegistration 对象中注册的对等方使用的 TCP/IP 端口号。Gets or sets the TCP/IP port number used by the peer being registered into the PeerNameRegistration object.

UseAutoEndPointSelection UseAutoEndPointSelection UseAutoEndPointSelection UseAutoEndPointSelection

获取或设置一个值,该值指定当遍历对等网格或 Cloud 时是否使用自动终结点选择。Gets or sets a value that specifies whether to use automatic endpoint selection when traversing a peer mesh or Cloud.

方法

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

释放由 PeerNameRegistration 对象使用的所有资源。Releases all resources used by the PeerNameRegistration object.

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

释放非托管资源,并(可选)释放由 PeerNameRegistration 对象占用的托管资源。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)

使用序列化 PeerNameRegistration 实例所需的数据填充序列化信息对象。Populates a serialization information object with the data needed to serialize the PeerNameRegistration instance.

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

获取当前实例的 TypeGets the Type of the current instance.

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

获取或设置在 PeerName 属性中指定的对等名称是否向主机上的特定 Cloud 进行了注册。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()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

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

PeerName 注册到 CloudRegisters the PeerName into the Cloud. 如果未指定 EndPointCollection,则将自动地址选择和由 Port 属性指定的端口值结合使用。If no EndPointCollection is specified, automatic address selection is used with the port value specified by the Port property.

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

从对等名称注册的所有云中注销 PeerName 属性中指定的对等名称。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()

为在特定 Cloud 中注册的节点更新 PeerNameRegistrationUpdates the PeerNameRegistration for a node registered with a specific Cloud. 使用属性中指定的信息执行更新。Update is performed using the information specified in the properties.

显式界面实现

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

实现 ISerializable 接口,并返回序列化 PeerNameRegistration 实例所需的数据。Implements the ISerializable interface and returns the data needed to serialize the PeerNameRegistration instance.

适用于