◆ add()
Adds a URI to self.
- Parameters
-
uri | The AMPS URI to add to the list. |
◆ addAll< T >()
Adds URIs to self.
- Parameters
-
uris | The AMPS URIs to add to the list. |
◆ getCurrentAuthenticator()
virtual Authenticator AMPS.Client.DefaultServerChooser.getCurrentAuthenticator |
( |
| ) |
|
|
inlinevirtual |
◆ getCurrentURI()
virtual string AMPS.Client.DefaultServerChooser.getCurrentURI |
( |
| ) |
|
|
inlinevirtual |
Returns the current URI.
- Returns
- A string with the URI to connect to, or null if no server is available to connect to.
Implements AMPS.Client.ServerChooser.
◆ getError()
virtual String AMPS.Client.DefaultServerChooser.getError |
( |
| ) |
|
|
inlinevirtual |
Provides additional detail to be included in an exception thrown when the AMPS instance(s) are not available. Called by the HAClient when creating an exception.
- Returns
- An String with information about the connection that failed and the reason for the failure. When no further information is available, returns an empty string.
Implements AMPS.Client.ServerChooser.
◆ reportFailure()
virtual void AMPS.Client.DefaultServerChooser.reportFailure |
( |
Exception |
exception, |
|
|
ConnectionInfo |
ci |
|
) |
| |
|
inlinevirtual |
Called by the HAClient when an error occurs connecting to the current URI, and/or when an error occurs logging on. Implementors will likely advance the current URI to the next one in a list, or choose to stay with the current one, based on the exception type.
- Parameters
-
exception | The exception associated with this failure. |
uri | The uri that we attempted to connect with (but failed) |
clientName | The name of the client that is being reconnected. |
Implements AMPS.Client.ServerChooser.
◆ reportSuccess()
virtual void AMPS.Client.DefaultServerChooser.reportSuccess |
( |
ConnectionInfo |
ci | ) |
|
|
inlinevirtual |
Called by the HAClient when successfully connected and logged on to the current instance.
- Parameters
-
uri | The uri that we have successfully connected with. |
clientName | The name of the client that was successfully reconnected. |
Implements AMPS.Client.ServerChooser.
The documentation for this class was generated from the following file:
- AMPS.Client/DefaultServerChooser.cs