elsa-core/src/modules/Elsa.EntityFrameworkCore.Common/CustomDbContextOptionsExtensionInfo.cs
Sipke Schoorstra 523f301bf7
Feature: Alterations (#4501)
* Implement Alteration types and engine

* Implement Alteration APIs

* Refactor activity work item with support for activity input

* Serialize scheduled activities as part of workflow state

* Add signal to schedule child activity

* Implement stores for plans and jobs

* Add EF Core provider

* Add Retry endpoint

* Keep root context as always active. The root context is the workflow execution context and contains persistent variable state

* Regenerate EF Core migrations

* Handle orphaned activity execution contexts

* Refactor workflow execution factory

* Enable configuring Jint from Program

* Update ModifyVariable alteration with support for type deserialization

* Use ShortGuid for identity

* Cleanup WorkflowServer host
2023-10-07 12:47:36 +02:00

40 lines
1,020 B
C#

using Microsoft.EntityFrameworkCore.Infrastructure;
namespace Elsa.EntityFrameworkCore.Common;
/// <summary>
/// Contains options for configuring Elsa's Entity Framework Core integration.
/// </summary>
public class CustomDbContextOptionsExtensionInfo : DbContextOptionsExtensionInfo
{
/// <inheritdoc />
public CustomDbContextOptionsExtensionInfo(IDbContextOptionsExtension extension)
: base(extension)
{
}
/// <inheritdoc />
public override bool IsDatabaseProvider => false;
/// <inheritdoc />
public override string LogFragment => "";
/// <inheritdoc />
public override int GetServiceProviderHashCode()
{
// Return a unique hash code for your custom extension
return 0;
}
/// <inheritdoc />
public override void PopulateDebugInfo(IDictionary<string, string> debugInfo)
{
}
/// <inheritdoc />
public override bool ShouldUseSameServiceProvider(DbContextOptionsExtensionInfo other)
{
return true;
}
}