IClusterClient.Connect 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.
Overloads
Connect() |
Starts the client and connects to the configured cluster. |
Connect(Func<Exception,Task<Boolean>>) |
Starts the client and connects to the configured cluster. |
Connect()
Starts the client and connects to the configured cluster.
public System.Threading.Tasks.Task Connect ();
abstract member Connect : unit -> System.Threading.Tasks.Task
Public Function Connect () As Task
Returns
A Task representing the work performed.
Remarks
This method may be called at-most-once per instance.
Applies to
Connect(Func<Exception,Task<Boolean>>)
- Source:
- IClusterClient.cs
Starts the client and connects to the configured cluster.
public System.Threading.Tasks.Task Connect (Func<Exception,System.Threading.Tasks.Task<bool>> retryFilter = default);
abstract member Connect : Func<Exception, System.Threading.Tasks.Task<bool>> -> System.Threading.Tasks.Task
Public Function Connect (Optional retryFilter As Func(Of Exception, Task(Of Boolean)) = Nothing) As Task
Parameters
An optional delegate which determines whether or not the initial connection attempt should be retried.
Returns
A Task representing the work performed.
Remarks
This method may be called at-most-once per instance.