Class UnityCheckpointService
Inheritance
UnityCheckpointService
Assembly: Serenity.UnityCheckpoint.Infrastructure.dll
Syntax
public class UnityCheckpointService : MonoBehaviour, ICheckpointService, IService, IFoundationSettings
Constructors
UnityCheckpointService()
Declaration
public UnityCheckpointService()
Properties
Guid
Declaration
public string Guid { get; set; }
Property Value
Id
Declaration
public string Id { get; set; }
Property Value
LogService
Declaration
public ILogService LogService { get; set; }
Property Value
Methods
Delete(CheckpointSlot)
Declaration
public void Delete(CheckpointSlot slot)
Parameters
HasCheckpoint(CheckpointSlot)
Declaration
public bool HasCheckpoint(CheckpointSlot slot)
Parameters
Returns
InitializeService(ILogService, ICheckpointStore)
Initializes the service with required dependencies.
Declaration
public void InitializeService(ILogService logService, ICheckpointStore store)
Parameters
| Type |
Name |
Description |
| ILogService |
logService |
The logging service for diagnostic output.
|
| ICheckpointStore |
store |
The checkpoint store for persistence.
|
QueryAvailable()
Declaration
public IReadOnlyList<CheckpointMetadata> QueryAvailable()
Returns
Save(CheckpointSlot, byte[], CheckpointMetadata)
Declaration
public CheckpointId Save(CheckpointSlot slot, byte[] data, CheckpointMetadata metadata)
Parameters
Returns
TryLoad(CheckpointSlot, out CheckpointSnapshot)
Declaration
public bool TryLoad(CheckpointSlot slot, out CheckpointSnapshot snapshot)
Parameters
Returns
TryLoad(CheckpointId, out CheckpointSnapshot)
Declaration
public bool TryLoad(CheckpointId id, out CheckpointSnapshot snapshot)
Parameters
Returns
Implements