Class FailSafeOutline
Acts as a DTO for keeping up with what all operations have failed in the context of interfacing with a storage device.
Inheritance
System.Object
FailSafeOutline
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Recolude.API.RecordingStorage.FailSafe
Assembly: Recolude.API.dll
Syntax
[Serializable]
public class FailSafeOutline
Constructors
FailSafeOutline()
Declaration
public FailSafeOutline()
FailSafeOutline(FailedDeletionEntry[], FailedSaveEntry[])
Declaration
public FailSafeOutline(FailedDeletionEntry[] failedDeletions, FailedSaveEntry[] failedSaves)
Parameters
Type | Name | Description |
---|---|---|
FailedDeletionEntry[] | failedDeletions | |
FailedSaveEntry[] | failedSaves |
Methods
AddFailedDeletion(String)
Adds to the list of failed deletions, or increments the number of times a specific recording has failed.
Declaration
public void AddFailedDeletion(string recordingID)
Parameters
Type | Name | Description |
---|---|---|
System.String | recordingID | ID of the recording we want to delete. |
AppendFailedSave(Int32)
Adds to the list of failed saves, or increments the number of times a specific recording has failed.
Declaration
public void AppendFailedSave(int recEntry)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | recEntry | ID of failed save. |
GetFailedDeletions()
All failed deletion operations.
Declaration
public FailedDeletionEntry[] GetFailedDeletions()
Returns
Type | Description |
---|---|
FailedDeletionEntry[] | All failed deletion operations. |
GetFailedSaves()
All failed save operations.
Declaration
public FailedSaveEntry[] GetFailedSaves()
Returns
Type | Description |
---|---|
FailedSaveEntry[] | All failed save operations. |
GetLargestFailedSaveRecEntry()
Finds the largest ID for a failed saved recording.
Declaration
public int GetLargestFailedSaveRecEntry()
Returns
Type | Description |
---|---|
System.Int32 | The largest ID for a failed saved recording. |