We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Options.Create()
1 parent a7b9436 commit eba9cbeCopy full SHA for eba9cbe
1 file changed
Shuttle.Core.TransactionScope/ServiceCollectionExtensions.cs
@@ -15,7 +15,12 @@ public static IServiceCollection AddTransactionScope(this IServiceCollection ser
15
16
builder?.Invoke(transactionScopeBuilder);
17
18
- services.AddSingleton(Options.Create(transactionScopeBuilder.Options));
+ services.AddOptions<TransactionScopeOptions>().Configure(options =>
19
+ {
20
+ options.IsolationLevel = transactionScopeBuilder.Options.IsolationLevel;
21
+ options.Timeout = transactionScopeBuilder.Options.Timeout;
22
+ options.Enabled = transactionScopeBuilder.Options.Enabled;
23
+ });
24
25
if (services.Contains(ServiceDescriptor.Singleton<ITransactionScopeFactory, TransactionScopeFactory>()))
26
{
0 commit comments