AMPS C# Client
5.3.3.4
AMPS C# Client for .NET
|
Public Member Functions | |
string | getCurrentURI () |
Authenticator | getCurrentAuthenticator () |
void | reportFailure (Exception exception, ConnectionInfo ci) |
String | getError () |
void | reportSuccess (ConnectionInfo ci) |
Authenticator AMPS.Client.ServerChooser.getCurrentAuthenticator | ( | ) |
Returns the Authenticator instance associated with the current URI.
Implemented in AMPS.Client.DefaultServerChooser.
string AMPS.Client.ServerChooser.getCurrentURI | ( | ) |
Returns the current URI.
Implemented in AMPS.Client.DefaultServerChooser.
String AMPS.Client.ServerChooser.getError | ( | ) |
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.
Implemented in AMPS.Client.DefaultServerChooser.
void AMPS.Client.ServerChooser.reportFailure | ( | Exception | exception, |
ConnectionInfo | ci | ||
) |
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.
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. |
Implemented in AMPS.Client.DefaultServerChooser.
void AMPS.Client.ServerChooser.reportSuccess | ( | ConnectionInfo | ci | ) |
Called by the HAClient when successfully connected and logged on to the current instance.
uri | The uri that we have successfully connected with. |
clientName | The name of the client that was successfully reconnected. |
Implemented in AMPS.Client.DefaultServerChooser.