Skip to content

Commit

Permalink
only 1 ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
KircMax committed Feb 23, 2025
1 parent ca04d28 commit 13353ab
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/Webserver.API/Services/ApiStandardServiceFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,14 @@ public class ApiStandardServiceFactory : IApiServiceFactory
/// <summary>
/// Standard service factory: will use standard implementations for interfaces
/// </summary>
public ApiStandardServiceFactory()
/// <param name="logger">Logger to be invoked</param>
public ApiStandardServiceFactory(ILogger logger = null)
{
_idGenerator = new GUIDGenerator();
_apiRequestParameterChecker = new ApiRequestParameterChecker();
_apiResponseChecker = new ApiResponseChecker();
_apiRequestFactory = new ApiRequestFactory(_idGenerator, _apiRequestParameterChecker);
_apiRequestFactory = new ApiRequestFactory(_idGenerator, _apiRequestParameterChecker, logger);
_apiWebAppResourceBuilder = GetApiWebAppResourceBuilder();
}

/// <summary>
/// Standard service factory: will use standard implementations for interfaces
/// </summary>
/// <param name="logger">Logger to be invoked</param>
public ApiStandardServiceFactory(ILogger logger) : this()
{
_logger = logger;
}

Expand Down

0 comments on commit 13353ab

Please sign in to comment.