elsa-core/src/modules/Elsa.Agents.Persistence.EntityFrameworkCore/Extensions.cs
Sipke Schoorstra 3acb1fd055 Update agent management features and refine configuration
Renamed methods and namespaces for clarity in `AgentsFeature` and extensions. Enhanced functionality of SEO Specialist and added new role for social media in sample app settings. Re-enabled persistence and API usage in Elsa server configuration.
2024-09-01 18:50:28 +02:00

20 lines
693 B
C#

using Elsa.Agents.Persistence.EntityFrameworkCore;
using Elsa.Agents.Persistence.Features;
using JetBrains.Annotations;
// ReSharper disable once CheckNamespace
namespace Elsa.Agents;
/// Provides extensions to the <see cref="AgentPersistenceFeature"/> feature.
[PublicAPI]
public static class Extensions
{
/// <summary>
/// Configures the <see cref="AgentPersistenceFeature"/> to use EF Core persistence providers.
/// </summary>
public static AgentPersistenceFeature UseEntityFrameworkCore(this AgentPersistenceFeature feature, Action<EFCoreAgentPersistenceFeature>? configure = default)
{
feature.Module.Configure(configure);
return feature;
}
}