Skip to content

Commit 4c50c82

Browse files
(GH-601) Removed erronous constructor in ServiceFactory to prevent issues when resolving type with an IOC container
1 parent 5c944b6 commit 4c50c82

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/DotNetToolkit.Repository/Services/ServiceFactory.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
namespace DotNetToolkit.Repository.Services
22
{
3-
using Configuration.Options;
43
using JetBrains.Annotations;
54
using System;
65
using Transactions;
@@ -20,18 +19,6 @@ public class ServiceFactory : IServiceFactory
2019

2120
#region Constructors
2221

23-
/// <summary>
24-
/// Initializes a new instance of the <see cref="ServiceFactory" /> class.
25-
/// </summary>
26-
/// <param name="optionsAction">A builder action used to create or modify options for this service factory.</param>
27-
public ServiceFactory([NotNull] Action<RepositoryOptionsBuilder> optionsAction) : this(new UnitOfWorkFactory(Guard.NotNull(optionsAction, nameof(optionsAction)))) { }
28-
29-
/// <summary>
30-
/// Initializes a new instance of the <see cref="ServiceFactory" /> class.
31-
/// </summary>
32-
/// <param name="options">The service options.</param>
33-
public ServiceFactory([NotNull] IRepositoryOptions options) : this(new UnitOfWorkFactory(Guard.NotNull(options, nameof(options)))) { }
34-
3522
/// <summary>
3623
/// Initializes a new instance of the <see cref="ServiceFactory"/> class.
3724
/// </summary>

0 commit comments

Comments
 (0)