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.
20 lines
693 B
C#
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;
|
|
}
|
|
} |