Skip to content

Commit 1a86126

Browse files
Scoped registered interceptors in the di containers
1 parent a2b88c1 commit 1a86126

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/DotNetToolkit.Repository.Extensions.Microsoft.DependencyInjection/ServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public static IServiceCollection AddRepositories(this IServiceCollection service
9292
}
9393
else
9494
{
95-
services.AddTransient(serviceType, implementationType);
95+
services.AddScoped(serviceType, implementationType);
9696
}
9797
}
9898
}

src/DotNetToolkit.Repository.Extensions.Unity/UnityContainerExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public static void RegisterRepositories(this IUnityContainer container, Action<R
9393
}
9494
else
9595
{
96-
container.RegisterType(serviceType, implementationType, new ContainerControlledTransientManager());
96+
container.RegisterType(serviceType, implementationType);
9797
}
9898
}
9999
}

0 commit comments

Comments
 (0)