Class ManualRecoveryHandler
A client reset strategy where the user needs to fully take care of a client reset.
Namespace: Realms.Sync.ErrorHandling
Assembly: Realm.dll
Syntax
public sealed class ManualRecoveryHandler : ClientResetHandlerBase
Constructors
| Improve this Doc View SourceManualRecoveryHandler()
Initializes a new instance of the ManualRecoveryHandler class that uses the Session.Error as handler for client resets.
Declaration
[Obsolete("Use ManualRecoveryHandler(ClientResetCallback onClientReset) instead.")]
public ManualRecoveryHandler()
Remarks
This obsolete constructor should be used only when the user wants to use the obsolete Session.Error event for handling session errors and client resets.
ManualRecoveryHandler(ClientResetHandlerBase.ClientResetCallback)
Initializes a new instance of the ManualRecoveryHandler class with the supplied client reset handler.
Declaration
public ManualRecoveryHandler(ClientResetHandlerBase.ClientResetCallback onClientReset)
Parameters
Type | Name | Description |
---|---|---|
ClientResetHandlerBase.ClientResetCallback | onClientReset | Callback triggered when a manual client reset happens. |
Properties
| Improve this Doc View SourceOnClientReset
Gets the callback to manually handle a Client Reset. A Client Reset should be handled as quickly as possible as any further changes to the Realm will not be synchronized with the server and must be moved manually from the backup Realm to the new one.
Declaration
public ClientResetHandlerBase.ClientResetCallback OnClientReset { get; }
Property Value
Type | Description |
---|---|
ClientResetHandlerBase.ClientResetCallback | Callback invoked on Client Reset. |