Class EfWorkflowHistoryGraphStore
EF Core implementation of IWorkflowHistoryGraphStore that persists workflow history graph nodes and edges to an SQLite database. Uses WorkflowHistoryDbContext which maps to the same tables created by the WorkflowFramework Dashboard migration (AddWorkflowHistoryGraph).
public sealed class EfWorkflowHistoryGraphStore : IWorkflowHistoryGraphStore
- Inheritance
-
EfWorkflowHistoryGraphStore
- Implements
- Inherited Members
Constructors
EfWorkflowHistoryGraphStore(WorkflowHistoryDbContext)
public EfWorkflowHistoryGraphStore(WorkflowHistoryDbContext db)
Parameters
Methods
GetEdgesForWorkflowAsync(string, CancellationToken)
public Task<IReadOnlyList<WorkflowHistoryEdge>> GetEdgesForWorkflowAsync(string workflowName, CancellationToken ct = default)
Parameters
workflowNamestringctCancellationToken
Returns
GetNodeAsync(string, CancellationToken)
public Task<WorkflowHistoryNode?> GetNodeAsync(string fingerprint, CancellationToken ct = default)
Parameters
fingerprintstringctCancellationToken
Returns
GetTopEdgesFromAsync(string, int, CancellationToken)
public Task<IReadOnlyList<WorkflowHistoryEdge>> GetTopEdgesFromAsync(string fingerprint, int topN = 10, CancellationToken ct = default)
Parameters
fingerprintstringtopNintctCancellationToken
Returns
LoadAsync(CancellationToken)
public Task<WorkflowHistoryGraph> LoadAsync(CancellationToken ct = default)
Parameters
Returns
SaveAsync(WorkflowHistoryGraph, CancellationToken)
public Task SaveAsync(WorkflowHistoryGraph graph, CancellationToken ct = default)
Parameters
graphWorkflowHistoryGraphctCancellationToken
Returns
SearchNodesAsync(string, int, CancellationToken)
public Task<IReadOnlyList<WorkflowHistoryNode>> SearchNodesAsync(string query, int limit = 20, CancellationToken ct = default)
Parameters
querystringlimitintctCancellationToken
Returns
UpsertEdgeAsync(WorkflowHistoryEdge, CancellationToken)
public Task UpsertEdgeAsync(WorkflowHistoryEdge edge, CancellationToken ct = default)
Parameters
edgeWorkflowHistoryEdgectCancellationToken
Returns
UpsertNodeAsync(WorkflowHistoryNode, CancellationToken)
public Task UpsertNodeAsync(WorkflowHistoryNode node, CancellationToken ct = default)
Parameters
nodeWorkflowHistoryNodectCancellationToken