diff --git a/src/WireMock.Net.StandAlone/StandAloneApp.cs b/src/WireMock.Net.StandAlone/StandAloneApp.cs
index 73a5b4d6..3cc5b05a 100644
--- a/src/WireMock.Net.StandAlone/StandAloneApp.cs
+++ b/src/WireMock.Net.StandAlone/StandAloneApp.cs
@@ -16,11 +16,11 @@ namespace WireMock.Net.StandAlone
private static readonly string Version = typeof(StandAloneApp).GetTypeInfo().Assembly.GetName().Version.ToString();
///
- /// Start WireMock.Net standalone Server based on the IWireMockServerSettings.
+ /// Start WireMock.Net standalone Server based on the WireMockServerSettings.
///
- /// The IWireMockServerSettings
+ /// The WireMockServerSettings
[PublicAPI]
- public static WireMockServer Start([NotNull] IWireMockServerSettings settings)
+ public static WireMockServer Start([NotNull] WireMockServerSettings settings)
{
Guard.NotNull(settings, nameof(settings));
diff --git a/src/WireMock.Net/Http/HttpClientBuilder.cs b/src/WireMock.Net/Http/HttpClientBuilder.cs
index 3b72e305..5b270c35 100644
--- a/src/WireMock.Net/Http/HttpClientBuilder.cs
+++ b/src/WireMock.Net/Http/HttpClientBuilder.cs
@@ -7,7 +7,7 @@ namespace WireMock.Http
{
internal static class HttpClientBuilder
{
- public static HttpClient Build(IHttpClientSettings settings)
+ public static HttpClient Build(HttpClientSettings settings)
{
#if NETSTANDARD || NETCOREAPP3_1 || NET5_0 || NET6_0
var handler = new HttpClientHandler
diff --git a/src/WireMock.Net/Http/WebhookSender.cs b/src/WireMock.Net/Http/WebhookSender.cs
index 0a054c33..aa18eb6d 100644
--- a/src/WireMock.Net/Http/WebhookSender.cs
+++ b/src/WireMock.Net/Http/WebhookSender.cs
@@ -19,9 +19,9 @@ namespace WireMock.Http
{
private const string ClientIp = "::1";
- private readonly IWireMockServerSettings _settings;
+ private readonly WireMockServerSettings _settings;
- public WebhookSender(IWireMockServerSettings settings)
+ public WebhookSender(WireMockServerSettings settings)
{
_settings = settings ?? throw new ArgumentNullException(nameof(settings));
}
diff --git a/src/WireMock.Net/IMapping.cs b/src/WireMock.Net/IMapping.cs
index 510c3111..cb39f320 100644
--- a/src/WireMock.Net/IMapping.cs
+++ b/src/WireMock.Net/IMapping.cs
@@ -76,8 +76,8 @@ namespace WireMock
///
/// The WireMockServerSettings.
///
- IWireMockServerSettings Settings { get; }
-
+ WireMockServerSettings Settings { get; }
+
///
/// Is State started ?
///
@@ -90,7 +90,7 @@ namespace WireMock
/// true if this mapping is an Admin Interface; otherwise, false.
///
bool IsAdminInterface { get; }
-
+
///
/// Gets a value indicating whether this mapping to be logged.
///
diff --git a/src/WireMock.Net/Mapping.cs b/src/WireMock.Net/Mapping.cs
index 2fa77e00..65fe03c9 100644
--- a/src/WireMock.Net/Mapping.cs
+++ b/src/WireMock.Net/Mapping.cs
@@ -44,7 +44,7 @@ namespace WireMock
public IResponseProvider Provider { get; }
///
- public IWireMockServerSettings Settings { get; }
+ public WireMockServerSettings Settings { get; }
///
public bool IsStartState => Scenario == null || Scenario != null && NextState != null && ExecutionConditionState == null;
@@ -81,7 +81,7 @@ namespace WireMock
Guid guid,
[CanBeNull] string title,
[CanBeNull] string path,
- [NotNull] IWireMockServerSettings settings,
+ [NotNull] WireMockServerSettings settings,
[NotNull] IRequestMatcher requestMatcher,
[NotNull] IResponseProvider provider,
int priority,
diff --git a/src/WireMock.Net/Proxy/ProxyHelper.cs b/src/WireMock.Net/Proxy/ProxyHelper.cs
index 5da5874f..a833989a 100644
--- a/src/WireMock.Net/Proxy/ProxyHelper.cs
+++ b/src/WireMock.Net/Proxy/ProxyHelper.cs
@@ -17,15 +17,15 @@ namespace WireMock.Proxy
{
internal class ProxyHelper
{
- private readonly IWireMockServerSettings _settings;
+ private readonly WireMockServerSettings _settings;
- public ProxyHelper([NotNull] IWireMockServerSettings settings)
+ public ProxyHelper([NotNull] WireMockServerSettings settings)
{
_settings = Guard.NotNull(settings, nameof(settings));
}
public async Task<(ResponseMessage Message, IMapping Mapping)> SendAsync(
- [NotNull] IProxyAndRecordSettings proxyAndRecordSettings,
+ [NotNull] ProxyAndRecordSettings proxyAndRecordSettings,
[NotNull] HttpClient client,
[NotNull] RequestMessage requestMessage,
[NotNull] string url)
@@ -59,7 +59,7 @@ namespace WireMock.Proxy
return (responseMessage, mapping);
}
- private IMapping ToMapping(IProxyAndRecordSettings proxyAndRecordSettings, RequestMessage requestMessage, ResponseMessage responseMessage)
+ private IMapping ToMapping(ProxyAndRecordSettings proxyAndRecordSettings, RequestMessage requestMessage, ResponseMessage responseMessage)
{
string[] excludedHeaders = proxyAndRecordSettings.ExcludedHeaders ?? new string[] { };
string[] excludedCookies = proxyAndRecordSettings.ExcludedCookies ?? new string[] { };
diff --git a/src/WireMock.Net/ResponseBuilders/IProxyResponseBuilder.cs b/src/WireMock.Net/ResponseBuilders/IProxyResponseBuilder.cs
index d8399cf1..13820531 100644
--- a/src/WireMock.Net/ResponseBuilders/IProxyResponseBuilder.cs
+++ b/src/WireMock.Net/ResponseBuilders/IProxyResponseBuilder.cs
@@ -1,4 +1,4 @@
-using JetBrains.Annotations;
+using JetBrains.Annotations;
using WireMock.Settings;
namespace WireMock.ResponseBuilders
@@ -21,6 +21,6 @@ namespace WireMock.ResponseBuilders
///
/// The IProxyAndRecordSettings.
/// A .
- IResponseBuilder WithProxy([NotNull] IProxyAndRecordSettings settings);
+ IResponseBuilder WithProxy([NotNull] ProxyAndRecordSettings settings);
}
}
\ No newline at end of file
diff --git a/src/WireMock.Net/ResponseBuilders/IStatusCodeResponseBuilder.cs b/src/WireMock.Net/ResponseBuilders/IStatusCodeResponseBuilder.cs
index 5bcda2e1..e09e9fd1 100644
--- a/src/WireMock.Net/ResponseBuilders/IStatusCodeResponseBuilder.cs
+++ b/src/WireMock.Net/ResponseBuilders/IStatusCodeResponseBuilder.cs
@@ -10,7 +10,7 @@ namespace WireMock.ResponseBuilders
{
///
/// The with status code.
- /// By default all status codes are allowed, to change this behaviour, see .
+ /// By default all status codes are allowed, to change this behaviour, see .
///
/// The code.
/// The .
@@ -18,7 +18,7 @@ namespace WireMock.ResponseBuilders
///
/// The with status code.
- /// By default all status codes are allowed, to change this behaviour, see .
+ /// By default all status codes are allowed, to change this behaviour, see .
///
/// The code.
/// The .
@@ -26,7 +26,7 @@ namespace WireMock.ResponseBuilders
///
/// The with status code.
- /// By default all status codes are allowed, to change this behaviour, see .
+ /// By default all status codes are allowed, to change this behaviour, see .
///
/// The code.
/// The .
diff --git a/src/WireMock.Net/ResponseBuilders/Response.WithProxy.cs b/src/WireMock.Net/ResponseBuilders/Response.WithProxy.cs
index d1c71386..28b2c24b 100644
--- a/src/WireMock.Net/ResponseBuilders/Response.WithProxy.cs
+++ b/src/WireMock.Net/ResponseBuilders/Response.WithProxy.cs
@@ -1,4 +1,4 @@
-using System.Net.Http;
+using System.Net.Http;
using WireMock.Http;
using WireMock.Settings;
using Stef.Validation;
@@ -12,7 +12,7 @@ namespace WireMock.ResponseBuilders
///
/// The WebProxy settings.
///
- public IProxyAndRecordSettings ProxyAndRecordSettings { get; private set; }
+ public ProxyAndRecordSettings ProxyAndRecordSettings { get; private set; }
///
public IResponseBuilder WithProxy(string proxyUrl, string clientX509Certificate2ThumbprintOrSubjectName = null)
@@ -29,7 +29,7 @@ namespace WireMock.ResponseBuilders
}
///
- public IResponseBuilder WithProxy(IProxyAndRecordSettings settings)
+ public IResponseBuilder WithProxy(ProxyAndRecordSettings settings)
{
Guard.NotNull(settings, nameof(settings));
diff --git a/src/WireMock.Net/ResponseBuilders/Response.cs b/src/WireMock.Net/ResponseBuilders/Response.cs
index 65f9da32..b213dc23 100644
--- a/src/WireMock.Net/ResponseBuilders/Response.cs
+++ b/src/WireMock.Net/ResponseBuilders/Response.cs
@@ -385,8 +385,8 @@ namespace WireMock.ResponseBuilders
return this;
}
- ///
- public async Task<(ResponseMessage Message, IMapping Mapping)> ProvideResponseAsync(RequestMessage requestMessage, IWireMockServerSettings settings)
+ ///
+ public async Task<(ResponseMessage Message, IMapping Mapping)> ProvideResponseAsync(RequestMessage requestMessage, WireMockServerSettings settings)
{
Guard.NotNull(requestMessage, nameof(requestMessage));
Guard.NotNull(settings, nameof(settings));
diff --git a/src/WireMock.Net/ResponseProviders/DynamicAsyncResponseProvider.cs b/src/WireMock.Net/ResponseProviders/DynamicAsyncResponseProvider.cs
index c9e84166..d29fbe3b 100644
--- a/src/WireMock.Net/ResponseProviders/DynamicAsyncResponseProvider.cs
+++ b/src/WireMock.Net/ResponseProviders/DynamicAsyncResponseProvider.cs
@@ -13,7 +13,7 @@ namespace WireMock.ResponseProviders
_responseMessageFunc = responseMessageFunc;
}
- public async Task<(ResponseMessage Message, IMapping Mapping)> ProvideResponseAsync(RequestMessage requestMessage, IWireMockServerSettings settings)
+ public async Task<(ResponseMessage Message, IMapping Mapping)> ProvideResponseAsync(RequestMessage requestMessage, WireMockServerSettings settings)
{
return (await _responseMessageFunc(requestMessage).ConfigureAwait(false), null);
}
diff --git a/src/WireMock.Net/ResponseProviders/DynamicResponseProvider.cs b/src/WireMock.Net/ResponseProviders/DynamicResponseProvider.cs
index 2ec19ebc..d0b97c2d 100644
--- a/src/WireMock.Net/ResponseProviders/DynamicResponseProvider.cs
+++ b/src/WireMock.Net/ResponseProviders/DynamicResponseProvider.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Threading.Tasks;
using WireMock.Settings;
@@ -13,7 +13,7 @@ namespace WireMock.ResponseProviders
_responseMessageFunc = responseMessageFunc;
}
- public Task<(ResponseMessage Message, IMapping Mapping)> ProvideResponseAsync(RequestMessage requestMessage, IWireMockServerSettings settings)
+ public Task<(ResponseMessage Message, IMapping Mapping)> ProvideResponseAsync(RequestMessage requestMessage, WireMockServerSettings settings)
{
(ResponseMessage responseMessage, IMapping mapping) result = (_responseMessageFunc(requestMessage), null);
return Task.FromResult(result);
diff --git a/src/WireMock.Net/ResponseProviders/IResponseProvider.cs b/src/WireMock.Net/ResponseProviders/IResponseProvider.cs
index 16eaae64..a541b5f2 100644
--- a/src/WireMock.Net/ResponseProviders/IResponseProvider.cs
+++ b/src/WireMock.Net/ResponseProviders/IResponseProvider.cs
@@ -17,6 +17,6 @@ namespace WireMock.ResponseProviders
/// The request.
/// The WireMockServerSettings.
/// The including a new (optional) .
- Task<(ResponseMessage Message, IMapping Mapping)> ProvideResponseAsync([NotNull] RequestMessage requestMessage, [NotNull] IWireMockServerSettings settings);
+ Task<(ResponseMessage Message, IMapping Mapping)> ProvideResponseAsync([NotNull] RequestMessage requestMessage, [NotNull] WireMockServerSettings settings);
}
}
\ No newline at end of file
diff --git a/src/WireMock.Net/ResponseProviders/ProxyAsyncResponseProvider.cs b/src/WireMock.Net/ResponseProviders/ProxyAsyncResponseProvider.cs
index d1083aa9..bdc6d537 100644
--- a/src/WireMock.Net/ResponseProviders/ProxyAsyncResponseProvider.cs
+++ b/src/WireMock.Net/ResponseProviders/ProxyAsyncResponseProvider.cs
@@ -6,16 +6,16 @@ namespace WireMock.ResponseProviders
{
internal class ProxyAsyncResponseProvider : IResponseProvider
{
- private readonly Func> _responseMessageFunc;
- private readonly IWireMockServerSettings _settings;
+ private readonly Func> _responseMessageFunc;
+ private readonly WireMockServerSettings _settings;
- public ProxyAsyncResponseProvider(Func> responseMessageFunc, IWireMockServerSettings settings)
+ public ProxyAsyncResponseProvider(Func> responseMessageFunc, WireMockServerSettings settings)
{
_responseMessageFunc = responseMessageFunc;
_settings = settings;
}
- public async Task<(ResponseMessage Message, IMapping Mapping)> ProvideResponseAsync(RequestMessage requestMessage, IWireMockServerSettings settings)
+ public async Task<(ResponseMessage Message, IMapping Mapping)> ProvideResponseAsync(RequestMessage requestMessage, WireMockServerSettings settings)
{
return (await _responseMessageFunc(requestMessage, _settings).ConfigureAwait(false), null);
}
diff --git a/src/WireMock.Net/Serialization/MappingConverter.cs b/src/WireMock.Net/Serialization/MappingConverter.cs
index 26f334fb..d8698ce2 100644
--- a/src/WireMock.Net/Serialization/MappingConverter.cs
+++ b/src/WireMock.Net/Serialization/MappingConverter.cs
@@ -209,7 +209,7 @@ namespace WireMock.Serialization
return mappingModel;
}
- private static WebProxyModel MapWebProxy(IWebProxySettings settings)
+ private static WebProxyModel MapWebProxy(WebProxySettings settings)
{
return settings != null ? new WebProxyModel
{
diff --git a/src/WireMock.Net/Serialization/MappingToFileSaver.cs b/src/WireMock.Net/Serialization/MappingToFileSaver.cs
index 1d5a0954..a4e3b068 100644
--- a/src/WireMock.Net/Serialization/MappingToFileSaver.cs
+++ b/src/WireMock.Net/Serialization/MappingToFileSaver.cs
@@ -8,10 +8,10 @@ namespace WireMock.Serialization
{
internal class MappingToFileSaver
{
- private readonly IWireMockServerSettings _settings;
+ private readonly WireMockServerSettings _settings;
private readonly MappingConverter _mappingConverter;
- public MappingToFileSaver(IWireMockServerSettings settings, MappingConverter mappingConverter)
+ public MappingToFileSaver(WireMockServerSettings settings, MappingConverter mappingConverter)
{
Guard.NotNull(settings, nameof(settings));
diff --git a/src/WireMock.Net/Serialization/MatcherMapper.cs b/src/WireMock.Net/Serialization/MatcherMapper.cs
index 48090d3d..621d4d54 100644
--- a/src/WireMock.Net/Serialization/MatcherMapper.cs
+++ b/src/WireMock.Net/Serialization/MatcherMapper.cs
@@ -15,9 +15,9 @@ namespace WireMock.Serialization
{
internal class MatcherMapper
{
- private readonly IWireMockServerSettings _settings;
+ private readonly WireMockServerSettings _settings;
- public MatcherMapper(IWireMockServerSettings settings)
+ public MatcherMapper(WireMockServerSettings settings)
{
_settings = settings ?? throw new ArgumentNullException(nameof(settings));
}
@@ -54,7 +54,7 @@ namespace WireMock.Serialization
return PluginLoader.Load(matchBehaviour, stringPatterns);
}
- throw new NotSupportedException("It's not allowed to use the 'CSharpCodeMatcher' because IWireMockServerSettings.AllowCSharpCodeMatcher is not set to 'true'.");
+ throw new NotSupportedException("It's not allowed to use the 'CSharpCodeMatcher' because WireMockServerSettings.AllowCSharpCodeMatcher is not set to 'true'.");
case nameof(LinqMatcher):
return new LinqMatcher(matchBehaviour, throwExceptionWhenMatcherFails, stringPatterns);
diff --git a/src/WireMock.Net/Server/RespondWithAProvider.cs b/src/WireMock.Net/Server/RespondWithAProvider.cs
index ab1eb115..c755156c 100644
--- a/src/WireMock.Net/Server/RespondWithAProvider.cs
+++ b/src/WireMock.Net/Server/RespondWithAProvider.cs
@@ -27,7 +27,7 @@ namespace WireMock.Server
private int _timesInSameState = 1;
private readonly RegistrationCallback _registrationCallback;
private readonly IRequestMatcher _requestMatcher;
- private readonly IWireMockServerSettings _settings;
+ private readonly WireMockServerSettings _settings;
private readonly bool _saveToFile;
public Guid Guid { get; private set; } = Guid.NewGuid();
@@ -43,7 +43,7 @@ namespace WireMock.Server
/// The request matcher.
/// The WireMockServerSettings.
/// Optional boolean to indicate if this mapping should be saved as static mapping file.
- public RespondWithAProvider(RegistrationCallback registrationCallback, IRequestMatcher requestMatcher, IWireMockServerSettings settings, bool saveToFile = false)
+ public RespondWithAProvider(RegistrationCallback registrationCallback, IRequestMatcher requestMatcher, WireMockServerSettings settings, bool saveToFile = false)
{
_registrationCallback = registrationCallback;
_requestMatcher = requestMatcher;
diff --git a/src/WireMock.Net/Server/WireMockServer.Admin.cs b/src/WireMock.Net/Server/WireMockServer.Admin.cs
index c87f5c4b..503fc2ce 100644
--- a/src/WireMock.Net/Server/WireMockServer.Admin.cs
+++ b/src/WireMock.Net/Server/WireMockServer.Admin.cs
@@ -209,7 +209,7 @@ namespace WireMock.Server
#region Proxy and Record
private HttpClient _httpClientForProxy;
- private void InitProxyAndRecord(IWireMockServerSettings settings)
+ private void InitProxyAndRecord(WireMockServerSettings settings)
{
_httpClientForProxy = HttpClientBuilder.Build(settings.ProxyAndRecordSettings);
@@ -222,7 +222,7 @@ namespace WireMock.Server
respondProvider.RespondWith(new ProxyAsyncResponseProvider(ProxyAndRecordAsync, settings));
}
- private async Task ProxyAndRecordAsync(RequestMessage requestMessage, IWireMockServerSettings settings)
+ private async Task ProxyAndRecordAsync(RequestMessage requestMessage, WireMockServerSettings settings)
{
var requestUri = new Uri(requestMessage.Url);
var proxyUri = new Uri(settings.ProxyAndRecordSettings.Url);
diff --git a/src/WireMock.Net/Server/WireMockServer.cs b/src/WireMock.Net/Server/WireMockServer.cs
index 219e1519..de97a02e 100644
--- a/src/WireMock.Net/Server/WireMockServer.cs
+++ b/src/WireMock.Net/Server/WireMockServer.cs
@@ -29,7 +29,7 @@ namespace WireMock.Server
{
private const int ServerStartDelayInMs = 100;
- private readonly IWireMockServerSettings _settings;
+ private readonly WireMockServerSettings _settings;
private readonly IOwinSelfHost _httpServer;
private readonly IWireMockMiddlewareOptions _options = new WireMockMiddlewareOptions();
private readonly MappingConverter _mappingConverter;
@@ -92,7 +92,7 @@ namespace WireMock.Server
/// The WireMockServerSettings.
/// The .
[PublicAPI]
- public static WireMockServer Start([NotNull] IWireMockServerSettings settings)
+ public static WireMockServer Start([NotNull] WireMockServerSettings settings)
{
Guard.NotNull(settings, nameof(settings));
@@ -193,7 +193,7 @@ namespace WireMock.Server
/// Service start failed with error: {startTask.Exception.Message}
///
/// Service start timed out after {TimeSpan.FromMilliseconds(settings.StartTimeout)}
- protected WireMockServer(IWireMockServerSettings settings)
+ protected WireMockServer(WireMockServerSettings settings)
{
_settings = settings;
diff --git a/src/WireMock.Net/Settings/HttpClientSettings.cs b/src/WireMock.Net/Settings/HttpClientSettings.cs
index ab9e2050..3db6a206 100644
--- a/src/WireMock.Net/Settings/HttpClientSettings.cs
+++ b/src/WireMock.Net/Settings/HttpClientSettings.cs
@@ -1,17 +1,24 @@
-namespace WireMock.Settings
+namespace WireMock.Settings
{
///
/// HttpClientSettings
///
- public class HttpClientSettings : IHttpClientSettings
+ public class HttpClientSettings
{
- ///
+ ///
+ /// The clientCertificate thumbprint or subject name fragment to use.
+ /// Example thumbprint : "D2DBF135A8D06ACCD0E1FAD9BFB28678DF7A9818". Example subject name: "www.google.com""
+ ///
public string ClientX509Certificate2ThumbprintOrSubjectName { get; set; }
- ///
- public IWebProxySettings WebProxySettings { get; set; }
+ ///
+ /// Defines the WebProxySettings.
+ ///
+ public WebProxySettings WebProxySettings { get; set; }
- ///
+ ///
+ /// Proxy requests should follow redirection (30x).
+ ///
public bool? AllowAutoRedirect { get; set; }
}
}
\ No newline at end of file
diff --git a/src/WireMock.Net/Settings/IHttpClientSettings.cs b/src/WireMock.Net/Settings/IHttpClientSettings.cs
deleted file mode 100644
index 82a9d9c2..00000000
--- a/src/WireMock.Net/Settings/IHttpClientSettings.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-namespace WireMock.Settings
-{
- ///
- /// IHttpClientSettings
- ///
- public interface IHttpClientSettings
- {
- ///
- /// The clientCertificate thumbprint or subject name fragment to use.
- /// Example thumbprint : "D2DBF135A8D06ACCD0E1FAD9BFB28678DF7A9818". Example subject name: "www.google.com""
- ///
- string ClientX509Certificate2ThumbprintOrSubjectName { get; set; }
-
- ///
- /// Defines the WebProxySettings.
- ///
- IWebProxySettings WebProxySettings { get; set; }
-
- ///
- /// Proxy requests should follow redirection (30x).
- ///
- bool? AllowAutoRedirect { get; set; }
- }
-}
\ No newline at end of file
diff --git a/src/WireMock.Net/Settings/IProxyAndRecordSettings.cs b/src/WireMock.Net/Settings/IProxyAndRecordSettings.cs
deleted file mode 100644
index 2e10128e..00000000
--- a/src/WireMock.Net/Settings/IProxyAndRecordSettings.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using JetBrains.Annotations;
-
-namespace WireMock.Settings
-{
- ///
- /// IProxyAndRecordSettings
- ///
- public interface IProxyAndRecordSettings : IHttpClientSettings
- {
- ///
- /// The URL to proxy.
- ///
- string Url { get; set; }
-
- ///
- /// Save the mapping for each request/response to the internal Mappings.
- ///
- bool SaveMapping { get; set; }
-
- ///
- /// Only save request/response to the internal Mappings if the status code is included in this pattern. (Note that SaveMapping must also be set to true.)
- /// The pattern can contain a single value like "200", but also ranges like "2xx", "100,300,600" or "100-299,6xx" are supported.
- ///
- [CanBeNull]
- string SaveMappingForStatusCodePattern { get; set; }
-
- ///
- /// Save the mapping for each request/response to a .json mapping file.
- ///
- bool SaveMappingToFile { get; set; }
-
- ///
- /// Defines a list from headers which will be excluded from the saved mappings.
- ///
- string[] ExcludedHeaders { get; set; }
-
- ///
- /// Defines a list of cookies which will be excluded from the saved mappings.
- ///
- string[] ExcludedCookies { get; set; }
- }
-}
\ No newline at end of file
diff --git a/src/WireMock.Net/Settings/IWebProxySettings.cs b/src/WireMock.Net/Settings/IWebProxySettings.cs
deleted file mode 100644
index 4c25e3f2..00000000
--- a/src/WireMock.Net/Settings/IWebProxySettings.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-namespace WireMock.Settings
-{
- ///
- /// IWebProxySettings
- ///
- public interface IWebProxySettings
- {
- ///
- /// A string instance that contains the address of the proxy server.
- ///
- string Address { get; set; }
-
- ///
- /// The user name associated with the credentials.
- ///
- string UserName { get; set; }
-
- ///
- /// The password for the user name associated with the credentials.
- ///
- string Password { get; set; }
- }
-}
diff --git a/src/WireMock.Net/Settings/IWebhookSettings.cs b/src/WireMock.Net/Settings/IWebhookSettings.cs
deleted file mode 100644
index ea4a5777..00000000
--- a/src/WireMock.Net/Settings/IWebhookSettings.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace WireMock.Settings
-{
- ///
- /// IWebhookSettings
- ///
- public interface IWebhookSettings : IHttpClientSettings
- {
- }
-}
\ No newline at end of file
diff --git a/src/WireMock.Net/Settings/IWireMockCertificateSettings.cs b/src/WireMock.Net/Settings/IWireMockCertificateSettings.cs
deleted file mode 100644
index d2d476bb..00000000
--- a/src/WireMock.Net/Settings/IWireMockCertificateSettings.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-namespace WireMock.Settings
-{
- ///
- /// If https is used, these settings can be used to configure the CertificateSettings in case a custom certificate instead the default .NET certificate should be used.
- ///
- /// X509StoreName and X509StoreLocation should be defined
- /// OR
- /// X509CertificateFilePath and X509CertificatePassword should be defined
- ///
- public interface IWireMockCertificateSettings
- {
- ///
- /// X509 StoreName (AddressBook, AuthRoot, CertificateAuthority, My, Root, TrustedPeople or TrustedPublisher)
- ///
- string X509StoreName { get; set; }
-
- ///
- /// X509 StoreLocation (CurrentUser or LocalMachine)
- ///
- string X509StoreLocation { get; set; }
-
- ///
- /// X509 Thumbprint or SubjectName (if not defined, the 'host' is used)
- ///
- string X509StoreThumbprintOrSubjectName { get; set; }
-
- ///
- /// X509Certificate FilePath
- ///
- string X509CertificateFilePath { get; set; }
-
- ///
- /// X509Certificate Password
- ///
- string X509CertificatePassword { get; set; }
-
- ///
- /// X509StoreName and X509StoreLocation should be defined
- /// OR
- /// X509CertificateFilePath and X509CertificatePassword should be defined
- ///
- bool IsDefined { get; }
- }
-}
\ No newline at end of file
diff --git a/src/WireMock.Net/Settings/IWireMockServerSettings.cs b/src/WireMock.Net/Settings/IWireMockServerSettings.cs
deleted file mode 100644
index 624fc68f..00000000
--- a/src/WireMock.Net/Settings/IWireMockServerSettings.cs
+++ /dev/null
@@ -1,249 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Text.RegularExpressions;
-using HandlebarsDotNet;
-using JetBrains.Annotations;
-using Newtonsoft.Json;
-using WireMock.Admin.Mappings;
-using WireMock.Handlers;
-using WireMock.Logging;
-using WireMock.Matchers;
-using WireMock.RegularExpressions;
-#if USE_ASPNETCORE
-using Microsoft.Extensions.DependencyInjection;
-using WireMock.Types;
-#endif
-
-namespace WireMock.Settings
-{
- ///
- /// IWireMockServerSettings
- ///
- public interface IWireMockServerSettings
- {
- ///
- /// Gets or sets the port.
- ///
- [PublicAPI]
- int? Port { get; set; }
-
- ///
- /// Gets or sets the use SSL.
- ///
- // ReSharper disable once InconsistentNaming
- [PublicAPI]
- bool? UseSSL { get; set; }
-
- ///
- /// Gets or sets whether to start admin interface.
- ///
- [PublicAPI]
- bool? StartAdminInterface { get; set; }
-
- ///
- /// Gets or sets if the static mappings should be read at startup.
- ///
- [PublicAPI]
- bool? ReadStaticMappings { get; set; }
-
- ///
- /// Watch the static mapping files + folder for changes when running.
- ///
- [PublicAPI]
- bool? WatchStaticMappings { get; set; }
-
- ///
- /// A value indicating whether subdirectories within the static mappings path should be monitored.
- ///
- [PublicAPI]
- bool? WatchStaticMappingsInSubdirectories { get; set; }
-
- ///
- /// Gets or sets if the proxy and record settings.
- ///
- [PublicAPI]
- IProxyAndRecordSettings ProxyAndRecordSettings { get; set; }
-
- ///
- /// Gets or sets the urls.
- ///
- [PublicAPI]
- string[] Urls { get; set; }
-
- ///
- /// StartTimeout
- ///
- [PublicAPI]
- int StartTimeout { get; set; }
-
- ///
- /// Allow Partial Mapping (default set to false).
- ///
- [PublicAPI]
- bool? AllowPartialMapping { get; set; }
-
- ///
- /// The username needed for __admin access.
- ///
- [PublicAPI]
- string AdminUsername { get; set; }
-
- ///
- /// The password needed for __admin access.
- ///
- [PublicAPI]
- string AdminPassword { get; set; }
-
- ///
- /// The AzureAD Tenant needed for __admin access.
- ///
- [PublicAPI]
- string AdminAzureADTenant { get; set; }
-
- ///
- /// The AzureAD Audience / Resource for __admin access.
- ///
- [PublicAPI]
- string AdminAzureADAudience { get; set; }
-
- ///
- /// The RequestLog expiration in hours (optional).
- ///
- [PublicAPI]
- int? RequestLogExpirationDuration { get; set; }
-
- ///
- /// The MaxRequestLog count (optional).
- ///
- [PublicAPI]
- int? MaxRequestLogCount { get; set; }
-
- ///
- /// Action which is called (with the IAppBuilder or IApplicationBuilder) before the internal WireMockMiddleware is initialized. [Optional]
- ///
- [PublicAPI]
- Action