Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project rename #8

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion digicert-certcentral-anycagateway.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.6.33815.320
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "digicert-certcentral-anycagateway", "digicert-certcentral-anycagateway\digicert-certcentral-anycagateway.csproj", "{434D1E74-8EE7-4CC6-BAEC-62D224022F5F}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "digicert-certcentral-caplugin", "digicert-certcentral-anycagateway\digicert-certcentral-caplugin.csproj", "{434D1E74-8EE7-4CC6-BAEC-62D224022F5F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
4 changes: 2 additions & 2 deletions digicert-certcentral-anycagateway/API/CertCentralAPIBase.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Keyfactor.Extensions.CAGateway.DigiCert.Models;
using Keyfactor.Extensions.CAPlugin.DigiCert.Models;
using Newtonsoft.Json;

using System;
Expand All @@ -7,7 +7,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert.API
namespace Keyfactor.Extensions.CAPlugin.DigiCert.API
{
public abstract class CertCentralBaseResponse
{
Expand Down
2 changes: 1 addition & 1 deletion digicert-certcentral-anycagateway/API/CertificateChain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert.API
namespace Keyfactor.Extensions.CAPlugin.DigiCert.API
{
public class CertificateChainRequest : CertCentralBaseRequest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Threading.Tasks;
using System.Web;

namespace Keyfactor.Extensions.CAGateway.DigiCert.API
namespace Keyfactor.Extensions.CAPlugin.DigiCert.API
{
/// <summary>
/// Request to get the details for a specific certificate type.
Expand Down
2 changes: 1 addition & 1 deletion digicert-certcentral-anycagateway/API/CertificateTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert.API
namespace Keyfactor.Extensions.CAPlugin.DigiCert.API
{
/// <summary>
/// Request to get a certificate type.
Expand Down
2 changes: 1 addition & 1 deletion digicert-certcentral-anycagateway/API/CheckDCV.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert.API
namespace Keyfactor.Extensions.CAPlugin.DigiCert.API
{
public class DVCheckDCVRequest : CertCentralBaseRequest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert.API
namespace Keyfactor.Extensions.CAPlugin.DigiCert.API
{
public class DownloadCertificateByFormatRequest : CertCentralBaseRequest
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Keyfactor.Extensions.CAGateway.DigiCert.Models;
using Keyfactor.Extensions.CAPlugin.DigiCert.Models;
using Newtonsoft.Json;

using System;
Expand All @@ -8,7 +8,7 @@
using System.Threading.Tasks;
using System.Web;

namespace Keyfactor.Extensions.CAGateway.DigiCert.API
namespace Keyfactor.Extensions.CAPlugin.DigiCert.API
{
public class ListCertificateOrdersRequest : CertCentralBaseRequest
{
Expand Down
2 changes: 1 addition & 1 deletion digicert-certcentral-anycagateway/API/ListContainers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert.API
namespace Keyfactor.Extensions.CAPlugin.DigiCert.API
{
/// <summary>
/// Request to get the containers available.
Expand Down
4 changes: 2 additions & 2 deletions digicert-certcentral-anycagateway/API/ListDomains.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Keyfactor.Extensions.CAGateway.DigiCert.Models;
using Keyfactor.Extensions.CAPlugin.DigiCert.Models;
using Microsoft.VisualBasic;
using Newtonsoft.Json;

Expand All @@ -9,7 +9,7 @@
using System.Threading.Tasks;
using System.Web;

namespace Keyfactor.Extensions.CAGateway.DigiCert.API
namespace Keyfactor.Extensions.CAPlugin.DigiCert.API
{
public class ListDomainsRequest : CertCentralBaseRequest
{
Expand Down
4 changes: 2 additions & 2 deletions digicert-certcentral-anycagateway/API/ListDuplicates.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Keyfactor.Extensions.CAGateway.DigiCert.Models;
using Keyfactor.Extensions.CAPlugin.DigiCert.Models;

using Newtonsoft.Json;

Expand All @@ -8,7 +8,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert.API
namespace Keyfactor.Extensions.CAPlugin.DigiCert.API
{
public class ListDuplicatesRequest : CertCentralBaseRequest
{
Expand Down
2 changes: 1 addition & 1 deletion digicert-certcentral-anycagateway/API/ListMetadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert.API
namespace Keyfactor.Extensions.CAPlugin.DigiCert.API
{
/// <summary>
/// Request to get the metadata fields available.
Expand Down
2 changes: 1 addition & 1 deletion digicert-certcentral-anycagateway/API/ListOrganizations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Threading.Tasks;
using System.Web;

namespace Keyfactor.Extensions.CAGateway.DigiCert.API
namespace Keyfactor.Extensions.CAPlugin.DigiCert.API
{
public class ListOrganizationsRequest : CertCentralBaseRequest
{
Expand Down
4 changes: 2 additions & 2 deletions digicert-certcentral-anycagateway/API/ListReissues.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Keyfactor.Extensions.CAGateway.DigiCert.Models;
using Keyfactor.Extensions.CAPlugin.DigiCert.Models;
using Newtonsoft.Json;

using System;
Expand All @@ -7,7 +7,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert.API
namespace Keyfactor.Extensions.CAPlugin.DigiCert.API
{
public class ListReissueRequest : CertCentralBaseRequest
{
Expand Down
4 changes: 2 additions & 2 deletions digicert-certcentral-anycagateway/API/ListRequests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Keyfactor.Extensions.CAGateway.DigiCert.Models;
using Keyfactor.Extensions.CAPlugin.DigiCert.Models;
using Newtonsoft.Json;

using System;
Expand All @@ -8,7 +8,7 @@
using System.Threading.Tasks;
using System.Web;

namespace Keyfactor.Extensions.CAGateway.DigiCert.API
namespace Keyfactor.Extensions.CAPlugin.DigiCert.API
{
public class ListRequestsRequest : CertCentralBaseRequest
{
Expand Down
4 changes: 2 additions & 2 deletions digicert-certcentral-anycagateway/API/OrderCertificate.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Keyfactor.Extensions.CAGateway.DigiCert.Models;
using Keyfactor.Extensions.CAPlugin.DigiCert.Models;
using Microsoft.VisualBasic;
using Newtonsoft.Json;

Expand All @@ -10,7 +10,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert.API
namespace Keyfactor.Extensions.CAPlugin.DigiCert.API
{
public class OrderRequest : CertCentralBaseRequest
{
Expand Down
4 changes: 2 additions & 2 deletions digicert-certcentral-anycagateway/API/Reissue.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Keyfactor.Extensions.CAGateway.DigiCert.Models;
using Keyfactor.Extensions.CAPlugin.DigiCert.Models;
using Newtonsoft.Json;

using System;
Expand All @@ -7,7 +7,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert.API
namespace Keyfactor.Extensions.CAPlugin.DigiCert.API
{
[Serializable]
public class ReissueRequest : CertCentralBaseRequest
Expand Down
2 changes: 1 addition & 1 deletion digicert-certcentral-anycagateway/API/RevokeCertificate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Threading.Tasks;
using System.Web;

namespace Keyfactor.Extensions.CAGateway.DigiCert.API
namespace Keyfactor.Extensions.CAPlugin.DigiCert.API
{
public class RevokeCertificateRequest : CertCentralBaseRequest
{
Expand Down
2 changes: 1 addition & 1 deletion digicert-certcentral-anycagateway/API/StatusChanges.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert.API
namespace Keyfactor.Extensions.CAPlugin.DigiCert.API
{
public class StatusChangesRequest : CertCentralBaseRequest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert.API
namespace Keyfactor.Extensions.CAPlugin.DigiCert.API
{
public class UpdateRequestStatusRequest : CertCentralBaseRequest
{
Expand Down
4 changes: 2 additions & 2 deletions digicert-certcentral-anycagateway/API/ViewCertificateOrder.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Keyfactor.Extensions.CAGateway.DigiCert.Models;
using Keyfactor.Extensions.CAPlugin.DigiCert.Models;
using Newtonsoft.Json;

using System;
Expand All @@ -7,7 +7,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert.API
namespace Keyfactor.Extensions.CAPlugin.DigiCert.API
{
public class ViewCertificateOrderRequest : CertCentralBaseRequest
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Keyfactor.AnyGateway.Extensions;
using Keyfactor.Common;
using Keyfactor.Common.Exceptions;
using Keyfactor.Extensions.CAGateway.DigiCert.API;
using Keyfactor.Extensions.CAGateway.DigiCert.Client;
using Keyfactor.Extensions.CAGateway.DigiCert.Models;
using Keyfactor.Extensions.CAPlugin.DigiCert.API;
using Keyfactor.Extensions.CAPlugin.DigiCert.Client;
using Keyfactor.Extensions.CAPlugin.DigiCert.Models;
using Keyfactor.Logging;
using Keyfactor.PKI.Enums;

Expand All @@ -20,21 +20,21 @@

using static Keyfactor.PKI.PKIConstants.Microsoft;

using CertCentralConstants = Keyfactor.Extensions.CAGateway.DigiCert.Constants;
using CertCentralConstants = Keyfactor.Extensions.CAPlugin.DigiCert.Constants;

namespace Keyfactor.Extensions.CAGateway.DigiCert
namespace Keyfactor.Extensions.CAPlugin.DigiCert
{
public class CertCentralCAConnector : IAnyCAPlugin
public class CertCentralCAPlugin : IAnyCAPlugin
{
private CertCentralConfig _config;
private readonly ILogger _logger;
private ICertificateDataReader _certificateDataReader;

private Dictionary<int, string> DCVTokens { get; } = new Dictionary<int, string>();

public CertCentralCAConnector()
public CertCentralCAPlugin()
{
_logger = LogHandler.GetClassLogger<CertCentralCAConnector>();
_logger = LogHandler.GetClassLogger<CertCentralCAPlugin>();
}
public void Initialize(IAnyCAPluginConfigProvider configProvider, ICertificateDataReader certificateDataReader)
{
Expand Down Expand Up @@ -403,7 +403,7 @@
/// </summary>
/// <param name="caRequestID">The gateway request ID of the record to retrieve, in the format 'orderID-certID'</param>
/// <returns></returns>
public async Task<AnyCAPluginCertificate> GetSingleRecord(string caRequestID)

Check warning on line 406 in digicert-certcentral-anycagateway/CertCentralCAPlugin.cs

View workflow job for this annotation

GitHub Actions / call-dotnet-build-and-release-workflow / dotnet-build-and-release

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

Check warning on line 406 in digicert-certcentral-anycagateway/CertCentralCAPlugin.cs

View workflow job for this annotation

GitHub Actions / call-dotnet-build-and-release-workflow / dotnet-build-and-release

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
{
_logger.MethodEntry(LogLevel.Trace);
// Split ca request id into order and cert id
Expand Down Expand Up @@ -497,7 +497,7 @@
/// </summary>
/// <returns></returns>
/// <exception cref="Exception"></exception>
public async Task Ping()

Check warning on line 500 in digicert-certcentral-anycagateway/CertCentralCAPlugin.cs

View workflow job for this annotation

GitHub Actions / call-dotnet-build-and-release-workflow / dotnet-build-and-release

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

Check warning on line 500 in digicert-certcentral-anycagateway/CertCentralCAPlugin.cs

View workflow job for this annotation

GitHub Actions / call-dotnet-build-and-release-workflow / dotnet-build-and-release

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
{
_logger.MethodEntry(LogLevel.Trace);
if (!_config.Enabled)
Expand Down Expand Up @@ -539,7 +539,7 @@
/// <returns></returns>
/// <exception cref="COMException"></exception>
/// <exception cref="Exception"></exception>
public async Task<int> Revoke(string caRequestID, string hexSerialNumber, uint revocationReason)

Check warning on line 542 in digicert-certcentral-anycagateway/CertCentralCAPlugin.cs

View workflow job for this annotation

GitHub Actions / call-dotnet-build-and-release-workflow / dotnet-build-and-release

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

Check warning on line 542 in digicert-certcentral-anycagateway/CertCentralCAPlugin.cs

View workflow job for this annotation

GitHub Actions / call-dotnet-build-and-release-workflow / dotnet-build-and-release

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
{
_logger.MethodEntry(LogLevel.Trace);
int orderId = Int32.Parse(caRequestID.Substring(0, caRequestID.IndexOf('-')));
Expand Down Expand Up @@ -599,7 +599,7 @@
/// <param name="cancelToken"></param>
/// <returns></returns>
/// <exception cref="Exception"></exception>
public async Task Synchronize(BlockingCollection<AnyCAPluginCertificate> blockingBuffer, DateTime? lastSync, bool fullSync, CancellationToken cancelToken)

Check warning on line 602 in digicert-certcentral-anycagateway/CertCentralCAPlugin.cs

View workflow job for this annotation

GitHub Actions / call-dotnet-build-and-release-workflow / dotnet-build-and-release

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

Check warning on line 602 in digicert-certcentral-anycagateway/CertCentralCAPlugin.cs

View workflow job for this annotation

GitHub Actions / call-dotnet-build-and-release-workflow / dotnet-build-and-release

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
{
_logger.MethodEntry(LogLevel.Trace);

Expand Down Expand Up @@ -739,7 +739,7 @@
/// </summary>
/// <param name="connectionInfo"></param>
/// <returns></returns>
public async Task ValidateCAConnectionInfo(Dictionary<string, object> connectionInfo)

Check warning on line 742 in digicert-certcentral-anycagateway/CertCentralCAPlugin.cs

View workflow job for this annotation

GitHub Actions / call-dotnet-build-and-release-workflow / dotnet-build-and-release

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

Check warning on line 742 in digicert-certcentral-anycagateway/CertCentralCAPlugin.cs

View workflow job for this annotation

GitHub Actions / call-dotnet-build-and-release-workflow / dotnet-build-and-release

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
{
_logger.MethodEntry(LogLevel.Trace);
try
Expand Down Expand Up @@ -810,7 +810,7 @@
/// <param name="connectionInfo"></param>
/// <returns></returns>
/// <exception cref="Exception"></exception>
public async Task ValidateProductInfo(EnrollmentProductInfo productInfo, Dictionary<string, object> connectionInfo)

Check warning on line 813 in digicert-certcentral-anycagateway/CertCentralCAPlugin.cs

View workflow job for this annotation

GitHub Actions / call-dotnet-build-and-release-workflow / dotnet-build-and-release

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

Check warning on line 813 in digicert-certcentral-anycagateway/CertCentralCAPlugin.cs

View workflow job for this annotation

GitHub Actions / call-dotnet-build-and-release-workflow / dotnet-build-and-release

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
{
_logger.MethodEntry(LogLevel.Trace);
// Set up.
Expand Down
2 changes: 1 addition & 1 deletion digicert-certcentral-anycagateway/CertCentralConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert
namespace Keyfactor.Extensions.CAPlugin.DigiCert
{
public class CertCentralConfig
{
Expand Down
6 changes: 3 additions & 3 deletions digicert-certcentral-anycagateway/Client/CertCentralClient.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Keyfactor.Extensions.CAGateway.DigiCert.API;
using Keyfactor.Extensions.CAGateway.DigiCert.Models;
using Keyfactor.Extensions.CAPlugin.DigiCert.API;
using Keyfactor.Extensions.CAPlugin.DigiCert.Models;
using Keyfactor.Logging;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
Expand All @@ -14,7 +14,7 @@

using static Keyfactor.PKI.X509.X509Utilities;

namespace Keyfactor.Extensions.CAGateway.DigiCert.Client
namespace Keyfactor.Extensions.CAPlugin.DigiCert.Client
{
public class CertCentralCredentials
{
Expand Down Expand Up @@ -97,7 +97,7 @@

Logger.LogTrace($"Entered CertCentral Request (ID: {reqID}) Method: {request.Method} - URL: {targetURI}");

HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create(targetURI);

Check warning on line 100 in digicert-certcentral-anycagateway/Client/CertCentralClient.cs

View workflow job for this annotation

GitHub Actions / call-dotnet-build-and-release-workflow / dotnet-build-and-release

'WebRequest.Create(string)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)

Check warning on line 100 in digicert-certcentral-anycagateway/Client/CertCentralClient.cs

View workflow job for this annotation

GitHub Actions / call-dotnet-build-and-release-workflow / dotnet-build-and-release

'WebRequest.Create(string)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)
objRequest.Method = request.Method;
objRequest.Headers.Add("X-DC-DEVKEY", this.CertCentralCreds.APIKey);

Expand Down Expand Up @@ -148,13 +148,13 @@
}
else
{
Logger.LogDebug("CertCentral Response Error", wex);

Check warning on line 151 in digicert-certcentral-anycagateway/Client/CertCentralClient.cs

View workflow job for this annotation

GitHub Actions / call-dotnet-build-and-release-workflow / dotnet-build-and-release

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 151 in digicert-certcentral-anycagateway/Client/CertCentralClient.cs

View workflow job for this annotation

GitHub Actions / call-dotnet-build-and-release-workflow / dotnet-build-and-release

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)
throw new Exception("Unable to establish connection to CertCentral web service", wex);
}
}
catch (Exception ex)
{
Logger.LogError("CertCentral Response Error", ex);

Check warning on line 157 in digicert-certcentral-anycagateway/Client/CertCentralClient.cs

View workflow job for this annotation

GitHub Actions / call-dotnet-build-and-release-workflow / dotnet-build-and-release

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 157 in digicert-certcentral-anycagateway/Client/CertCentralClient.cs

View workflow job for this annotation

GitHub Actions / call-dotnet-build-and-release-workflow / dotnet-build-and-release

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)
throw new Exception("Unable to establish connection to CertCentral web service", ex);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert.Client
namespace Keyfactor.Extensions.CAPlugin.DigiCert.Client
{
/// <summary>
/// Static class containing some utility methods for the cert central client.
Expand All @@ -17,7 +17,7 @@ public static class CertCentralClientUtilities
/// <summary>
/// Private instance of the logger.
/// </summary>
private static ILogger Logger => LogHandler.GetClassLogger<CertCentralCAConnector>();
private static ILogger Logger => LogHandler.GetClassLogger<CertCentralCAPlugin>();

/// <summary>
/// Uses the <see cref="CertCentralConfig"/> to build a DigiCert client.
Expand Down
2 changes: 1 addition & 1 deletion digicert-certcentral-anycagateway/Client/Conversions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert.Client
namespace Keyfactor.Extensions.CAPlugin.DigiCert.Client
{
public class Conversions
{
Expand Down
2 changes: 1 addition & 1 deletion digicert-certcentral-anycagateway/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert
namespace Keyfactor.Extensions.CAPlugin.DigiCert
{
public class Constants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Keyfactor.Extensions.CAGateway.DigiCert.API;
using Keyfactor.Extensions.CAGateway.DigiCert.Client;
using Keyfactor.Extensions.CAPlugin.DigiCert.API;
using Keyfactor.Extensions.CAPlugin.DigiCert.Client;
using Keyfactor.Logging;
using Microsoft.Extensions.Logging;

Expand All @@ -9,7 +9,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert.Models
namespace Keyfactor.Extensions.CAPlugin.DigiCert.Models
{
public class CertCentralCertType
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert.Models
namespace Keyfactor.Extensions.CAPlugin.DigiCert.Models
{
public class CertificateOrder
{
Expand Down
2 changes: 1 addition & 1 deletion digicert-certcentral-anycagateway/Models/Contact.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert.Models
namespace Keyfactor.Extensions.CAPlugin.DigiCert.Models
{
public class User : Contact
{
Expand Down
2 changes: 1 addition & 1 deletion digicert-certcentral-anycagateway/Models/Error.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert.Models
namespace Keyfactor.Extensions.CAPlugin.DigiCert.Models
{
public class Error
{
Expand Down
2 changes: 1 addition & 1 deletion digicert-certcentral-anycagateway/Models/IdInformation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Keyfactor.Extensions.CAGateway.DigiCert.Models
namespace Keyfactor.Extensions.CAPlugin.DigiCert.Models
{
public class IdInformation
{
Expand Down
Loading
Loading