Table of Contents

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

recoveryAction RecoveryAction

Fields

internalCalls

protected int internalCalls

Field Value

int

loadedPath

protected string loadedPath

Field Value

string

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

RecoveryAction

Methods

Attach(JsonSettings)

public override void Attach(JsonSettings socket)

Parameters

socket JsonSettings

Deattach(JsonSettings)

public override void Deattach(JsonSettings socket)

Parameters

socket JsonSettings

HandleRecovery(JsonSettings, RecoveryAction, ref bool, ref bool)

protected virtual void HandleRecovery(JsonSettings sender, RecoveryAction action, ref bool recovered, ref bool handled)

Parameters

sender JsonSettings
action RecoveryAction
recovered bool
handled bool

SocketOnBeforeLoad(JsonSettings, ref string)

protected virtual void SocketOnBeforeLoad(JsonSettings sender, ref string destinition)

Parameters

sender JsonSettings
destinition string

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

sender JsonSettings
filename string
jsonException JsonException
recovered bool
handled bool