PeerResolver.Register(String, PeerNodeAddress, TimeSpan) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers a PeerNodeAddress for a specific peer mesh.
public:
abstract System::Object ^ Register(System::String ^ meshId, System::ServiceModel::PeerNodeAddress ^ nodeAddress, TimeSpan timeout);
public abstract object Register (string meshId, System.ServiceModel.PeerNodeAddress nodeAddress, TimeSpan timeout);
abstract member Register : string * System.ServiceModel.PeerNodeAddress * TimeSpan -> obj
Public MustOverride Function Register (meshId As String, nodeAddress As PeerNodeAddress, timeout As TimeSpan) As Object
Parameters
- meshId
- String
The ID of the peer mesh in which the peer node is to be registered.
- nodeAddress
- PeerNodeAddress
The PeerNodeAddress to be registered with the peer mesh.
- timeout
- TimeSpan
The length of time to wait for success before aborting the attempt to register with the peer mesh. If the attempt fails, TimeoutException is raised on the peer.
Returns
An Object that represents the registration ID. This registration ID object is passed to the Update(Object, PeerNodeAddress, TimeSpan) and Unregister(Object, TimeSpan) methods.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈