Class RecoveryModule
- Namespace
- Nucs.JsonSettings.Modulation.Recovery
- Assembly
- Nucs.JsonSettings.dll
Takes care of recovering from errors when trying to parse the json file
public class RecoveryModule : Module, IDisposable
- Inheritance
-
RecoveryModule
- Implements
- Inherited Members
Constructors
RecoveryModule(RecoveryAction)
public RecoveryModule(RecoveryAction recoveryAction)
Parameters
recoveryActionRecoveryAction
Fields
internalCalls
protected int internalCalls
Field Value
loadedPath
protected string loadedPath
Field Value
Properties
ConstructingParameters
The parameters that'll be passed to the constructor of JsonSettings that were passed.
public object[]? ConstructingParameters { get; set; }
Property Value
- object[]
RecoveryAction
public RecoveryAction RecoveryAction { get; set; }
Property Value
Methods
Attach(JsonSettings)
public override void Attach(JsonSettings socket)
Parameters
socketJsonSettings
Deattach(JsonSettings)
public override void Deattach(JsonSettings socket)
Parameters
socketJsonSettings
HandleRecovery(JsonSettings, RecoveryAction, ref bool, ref bool)
protected virtual void HandleRecovery(JsonSettings sender, RecoveryAction action, ref bool recovered, ref bool handled)
Parameters
senderJsonSettingsactionRecoveryActionrecoveredboolhandledbool
SocketOnBeforeLoad(JsonSettings, ref string)
protected virtual void SocketOnBeforeLoad(JsonSettings sender, ref string destinition)
Parameters
senderJsonSettingsdestinitionstring
SocketOnTryingRecover(JsonSettings, string, JsonException?, ref bool, ref bool)
protected virtual void SocketOnTryingRecover(JsonSettings sender, string filename, JsonException? jsonException, ref bool recovered, ref bool handled)
Parameters
senderJsonSettingsfilenamestringjsonExceptionJsonExceptionrecoveredboolhandledbool