Assembly: OptimaJet.Workflow.Core

Class SyncEntity

OptimaJet.Workflow.Core.Entities.SyncEntity

Represents persisted synchronization state used to coordinate timer scheduling among WorkflowRuntime instances.

public class SyncEntity : IEntity

Type Hierarchy

  • SyncEntity Current type

Properties

public string Name { get; set; } #
Gets or sets the name that identifies the synchronization record.
public Guid Lock { get; set; } #
Gets or sets the optimistic-concurrency token for the synchronization record.

Methods

public object GetValue(string key) #
Gets the value of the property identified by key.

Parameters

Name
Type
Description
key
String
The case-sensitive name of SyncEntity.Name or SyncEntity.Lock.

Returns

Type
Description
Object
The value of the property selected by key.

Exceptions

Type
Description
ColumnNotExistsException
key does not match the name of a supported property.
public void SetValue(string key, object value) #
Sets the value of the property identified by key.

Parameters

Name
Type
Description
key
String
The case-sensitive name of SyncEntity.Name or SyncEntity.Lock.
value
Object
The value to assign. A value for SyncEntity.Lock must be a Guid; a value that is not a string for SyncEntity.Name is assigned as null.

Exceptions

Type
Description
ColumnNotExistsException
key does not match the name of a supported property.
InvalidCastException
key identifies SyncEntity.Lock and value is not null and is not a Guid.
NullReferenceException
key identifies SyncEntity.Lock and value is null.