Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Trax.Effect.Data/Extensions/ServiceExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ public static class ServiceExtensions
{
/// <summary>
/// Adds data context logging to the Trax.Effect system.
/// Requires a data provider (<c>UsePostgres()</c> or <c>UseInMemory()</c>) to have been configured first.
/// Requires a data provider (<c>UsePostgres()</c>, <c>UseSqlite()</c>, or <c>UseInMemory()</c>) to have been configured first.
/// </summary>
/// <param name="configurationBuilder">
/// The effect builder with a data provider configured. This method is only available
/// after calling <c>UsePostgres()</c> or <c>UseInMemory()</c>, which promotes the builder
/// after calling <c>UsePostgres()</c>, <c>UseSqlite()</c>, or <c>UseInMemory()</c>, which promotes the builder
/// to <see cref="TraxEffectBuilderWithData"/>.
/// </param>
/// <param name="minimumLogLevel">The minimum log level to capture (defaults to Information if not specified)</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static class ServiceExtensions
/// Adds junction progress tracking and cancellation checking. Each junction's progress
/// (current junction index, total junctions, junction name) is persisted to metadata, and
/// the train's cancellation token is checked before each junction executes.
/// Requires a data provider (<c>UsePostgres()</c> or <c>UseInMemory()</c>).
/// Requires a data provider (<c>UsePostgres()</c>, <c>UseSqlite()</c>, or <c>UseInMemory()</c>).
/// </summary>
/// <typeparam name="TBuilder">The builder type (supports chaining through promoted builders).</typeparam>
/// <param name="configurationBuilder">The effect builder.</param>
Expand Down
2 changes: 1 addition & 1 deletion src/Trax.Effect/Configuration/TraxBuilder/TraxBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public partial class TraxBuilder(IServiceCollection services, IEffectRegistry re
public bool HasDatabaseProvider { get; set; }

/// <summary>
/// Whether any data provider (<c>UsePostgres()</c> or <c>UseInMemory()</c>) was configured.
/// Whether any data provider (<c>UsePostgres()</c>, <c>UseSqlite()</c>, or <c>UseInMemory()</c>) was configured.
/// Unlike <see cref="HasDatabaseProvider"/> (Postgres only), this is true for all data providers.
/// Used for build-time validation of features that require any data context.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public TraxBuilderWithEffects(TraxBuilder root)
public bool HasDatabaseProvider => Root.HasDatabaseProvider;

/// <summary>
/// Whether any data provider (<c>UsePostgres()</c> or <c>UseInMemory()</c>) was configured.
/// Whether any data provider (<c>UsePostgres()</c>, <c>UseSqlite()</c>, or <c>UseInMemory()</c>) was configured.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public bool HasDataProvider => Root.HasDataProvider;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ internal TraxEffectConfiguration.TraxEffectConfiguration Build()
if (JunctionProgressEnabled && !HasDataProvider)
{
throw new InvalidOperationException(
"AddJunctionProgress() requires a data provider (UsePostgres() or UseInMemory()). "
"AddJunctionProgress() requires a data provider (UsePostgres(), UseSqlite(), or UseInMemory()). "
+ "Junction progress tracking persists progress to metadata and checks for cancellation signals, "
+ "which requires a data context.\n\n"
+ "Add a data provider to your effects configuration:\n\n"
+ " services.AddTrax(trax => trax\n"
+ " .AddEffects(effects => effects\n"
+ " .UsePostgres(connectionString) // or .UseInMemory()\n"
+ " .UsePostgres(connectionString) // or .UseSqlite(connectionString) / .UseInMemory()\n"
+ " .AddJunctionProgress()\n"
+ " )\n"
+ " );\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Trax.Effect.Configuration.TraxEffectBuilder;
/// Builder for configuring the Trax effect system (data providers, junction providers, lifecycle hooks).
/// </summary>
/// <remarks>
/// After calling a data provider method (<c>UsePostgres()</c> or <c>UseInMemory()</c>), the builder
/// After calling a data provider method (<c>UsePostgres()</c>, <c>UseSqlite()</c>, or <c>UseInMemory()</c>), the builder
/// is promoted to <see cref="TraxEffectBuilderWithData"/>, which unlocks additional methods such as
/// <c>AddDataContextLogging()</c>. All general effect methods (e.g., <c>AddJson()</c>,
/// <c>SaveTrainParameters()</c>) are available on both types via generic self-type preservation.
Expand Down Expand Up @@ -68,7 +68,7 @@ public bool HasDatabaseProvider
}

/// <summary>
/// Whether any data provider (<c>UsePostgres()</c> or <c>UseInMemory()</c>) was configured.
/// Whether any data provider (<c>UsePostgres()</c>, <c>UseSqlite()</c>, or <c>UseInMemory()</c>) was configured.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public bool HasDataProvider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Trax.Effect.Configuration.TraxEffectBuilder;

/// <summary>
/// Builder state after a data provider (<c>UsePostgres()</c> or <c>UseInMemory()</c>) has been configured.
/// Builder state after a data provider (<c>UsePostgres()</c>, <c>UseSqlite()</c>, or <c>UseInMemory()</c>) has been configured.
/// Extension methods that require a data provider (e.g., <c>AddDataContextLogging()</c>) target this type,
/// enforcing at compile time that a data provider is registered before they can be called.
/// </summary>
Expand Down
Loading