Class UnityCheckpointService
Inheritance
UnityCheckpointService
Assembly: Serenity.UnityCheckpoint.Infrastructure.dll
Syntax
public class UnityCheckpointService : MonoBehaviour, ICheckpointService, IService, IFoundationSettings
Constructors
UnityCheckpointService()
Declaration
public UnityCheckpointService()
Fields
LOG_CATEGORY
Declaration
protected const string LOG_CATEGORY = "CheckpointService"
Field Value
_guid
Declaration
Field Value
_id
Declaration
Field Value
_logService
Declaration
protected ILogService _logService
Field Value
_store
Declaration
protected ICheckpointStore _store
Field Value
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 virtual void Delete(CheckpointSlot slot)
Parameters
HasCheckpoint(CheckpointSlot)
Declaration
public virtual bool HasCheckpoint(CheckpointSlot slot)
Parameters
Returns
InitializeService(ILogService, ICheckpointStore)
Initializes the service with required dependencies.
Declaration
public virtual 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 virtual IReadOnlyList<CheckpointMetadata> QueryAvailable()
Returns
Save(CheckpointSlot, byte[], CheckpointMetadata)
Declaration
public virtual CheckpointId Save(CheckpointSlot slot, byte[] data, CheckpointMetadata metadata)
Parameters
Returns
TryLoad(CheckpointSlot, out CheckpointSnapshot)
Declaration
public virtual bool TryLoad(CheckpointSlot slot, out CheckpointSnapshot snapshot)
Parameters
Returns
TryLoad(CheckpointId, out CheckpointSnapshot)
Declaration
public virtual bool TryLoad(CheckpointId id, out CheckpointSnapshot snapshot)
Parameters
Returns
Implements