Skip to content

Commit

Permalink
remove unnecessary usings -> run code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
KircMax committed Feb 23, 2025
1 parent c921cfd commit ca04d28
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/Webserver.API/Exceptions/ApiBulkRequestException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using Newtonsoft.Json;
using Siemens.Simatic.S7.Webserver.API.Models.Responses;
using System;
using System.Data;
using System.Linq;
using System.Text;

Expand Down
2 changes: 1 addition & 1 deletion src/Webserver.API/Services/ApiStandardServiceFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ public async Task<IApiRequestHandler> GetApiHttpClientRequestHandlerAsync(HttpCl
/// <returns>A usable and authenticated <see cref="ApiHttpClientRequestHandler"/></returns>
public IApiRequestHandler GetApiHttpClientRequestHandler(HttpClientConnectionConfiguration connectionConfiguration)
=> GetApiHttpClientRequestHandlerAsync(connectionConfiguration).GetAwaiter().GetResult();

/// <summary>
/// Get an <see cref="ApiHttpClientRequestHandler"/> using the given <see cref="HttpClientConnectionConfiguration"/>
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
using System.Threading;
using System.Threading.Tasks;
using System.Xml;
using System.Text.RegularExpressions;
using Newtonsoft.Json.Linq;
using Microsoft.AspNetCore.DataProtection;

namespace Siemens.Simatic.S7.Webserver.API.Services.RequestHandling
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ public virtual IEnumerable<IApiRequest> GetApiBulkRequestWithUniqueIds(IEnumerab
if (counter > 1)
{
_logger.LogTrace($"In '{nameof(GetApiBulkRequestWithUniqueIds)}' -> counter '{counter}' -> regenerate using '{nameof(RequestIdGenerator)}' -> type:'{RequestIdGenerator.GetType()}'");
if (counter %10 == 0)
if (counter % 10 == 0)
{
_logger.LogWarning($"In '{nameof(GetApiBulkRequestWithUniqueIds)}' -> counter '{counter}' -> regenerate using '{nameof(RequestIdGenerator)}' -> type:'{RequestIdGenerator.GetType()}' " +
$"time passed: '{DateTime.Now - startTime}', timeout: '{timeOut}', ignoreTimeout: '{ignoreTimeOut}'");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public interface IApiRequestHandler
/// </summary>
/// <returns>A QuantityStructure object</returns>
ApiGetQuantityStructuresResponse ApiGetQuantityStructures();

/// <summary>
/// Send a Api.Login Request
/// </summary>
Expand Down

0 comments on commit ca04d28

Please sign in to comment.