Hello,
Two part question regarding Saga Timeouts and SQL Persistence.
-
I can’t seem to get the Timeouts table to be created on startup of the process. It will generate Saga tables, and the Timeout scripts have been generated. However, no tables get generated. I’ve tried setting SQLPersistence for all tables, and even specified the Timeouts but to no avail. I’m not sure if there’s something else I’m missing. I’ve tried the following code:
var persistence = endpointConfiguration.UsePersistence<SqlPersistence>(); persistence.SqlDialect<SqlDialect.MsSqlServer>().Schema("Saga"); persistence.ConnectionBuilder(() => { return new SqlConnection(sqlSettings.ConnectionStrings[SqlDbTypes.Saga]); }); var timeouts = persistence.TimeoutSettings(); timeouts.ConnectionBuilder( connectionBuilder: () => { return new SqlConnection(sqlSettings.ConnectionStrings[SqlDbTypes.Saga]); });
I’ve also tried this:
var timeoutPersistence = endpointConfiguration
.UsePersistence<SqlPersistence, StorageType.Timeouts>();
timeoutPersistence.SqlDialect<SqlDialect.MsSqlServer>().Schema("Saga");
timeoutPersistence.ConnectionBuilder(() =>
{
return new SqlConnection(sqlSettings.ConnectionStrings[SqlDbTypes.Saga]);
});
- So to forge ahead, I just ran the scripts on the DB. And though the timeouts work (even with start and restarting the process) I see nothing in the Timeouts table in the DB. Will I be able to see the Timeout data in the DB? Or am I missing something simple, if you have any advice it’s much appreciated, thanks!!