Class RecordingStorageFailSafe
Attempts to perform the recording storage operation on the desired object, if fails then the operation becomes cached for later.
The operations that get's saved only applies to Save and Delete, as Load would not make sense.
Not thread safe. Errors can be introduced if multiple Fail Safes are operating on the same binary storage fallback, or if the same instance is being used across threads
Inheritance
System.Object
RecordingStorageFailSafe
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()
Assembly: Recolude.API.dll
Syntax
public class RecordingStorageFailSafe : IRecordingStorage
Constructors
RecordingStorageFailSafe(IRecordingStorage, IBinaryStorage)
Declaration
public RecordingStorageFailSafe(IRecordingStorage desiredStorage, IBinaryStorage fallback)
Parameters
Methods
DeleteRecording(String)
Declaration
public IDeleteRecordingOperation DeleteRecording(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
LoadRecording(String)
Declaration
public ILoadRecordingOperation LoadRecording(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
LogFailedDeletion(String, FailSafeOutline)
Declaration
public CustomYieldInstruction LogFailedDeletion(string id, FailSafeOutline outline)
Parameters
Returns
Type |
Description |
UnityEngine.CustomYieldInstruction |
|
LogFailedSave(IRecording, Int32, FailSafeOutline)
Declaration
public CustomYieldInstruction LogFailedSave(IRecording recording, int incrementEntry, FailSafeOutline outline)
Parameters
Returns
Type |
Description |
UnityEngine.CustomYieldInstruction |
|
Reset()
Declaration
RetryFailedDeletions()
Declaration
public IEnumerator RetryFailedDeletions()
Returns
Type |
Description |
System.Collections.IEnumerator |
|
RetryFailedSaves()
Declaration
public IEnumerator RetryFailedSaves()
Returns
Type |
Description |
System.Collections.IEnumerator |
|
SaveRecording(IRecording)
Declaration
public ISaveRecordingOperation SaveRecording(IRecording recording)
Parameters
Returns
Implements