mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-19 07:43:48 +01:00
* Option to disable JSON deserialization * Fix build errors, add test case * make new parameter optional * set default for contentType as well
47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Concurrent;
|
|
using WireMock.Handlers;
|
|
using WireMock.Logging;
|
|
using WireMock.Matchers;
|
|
using WireMock.Util;
|
|
#if !USE_ASPNETCORE
|
|
using Owin;
|
|
#else
|
|
using IAppBuilder = Microsoft.AspNetCore.Builder.IApplicationBuilder;
|
|
#endif
|
|
|
|
namespace WireMock.Owin
|
|
{
|
|
internal interface IWireMockMiddlewareOptions
|
|
{
|
|
IWireMockLogger Logger { get; set; }
|
|
|
|
TimeSpan? RequestProcessingDelay { get; set; }
|
|
|
|
IStringMatcher AuthorizationMatcher { get; set; }
|
|
|
|
bool? AllowPartialMapping { get; set; }
|
|
|
|
ConcurrentDictionary<Guid, IMapping> Mappings { get; }
|
|
|
|
ConcurrentDictionary<string, ScenarioState> Scenarios { get; }
|
|
|
|
ConcurrentObservableCollection<LogEntry> LogEntries { get; }
|
|
|
|
int? RequestLogExpirationDuration { get; set; }
|
|
|
|
int? MaxRequestLogCount { get; set; }
|
|
|
|
Action<IAppBuilder> PreWireMockMiddlewareInit { get; set; }
|
|
|
|
Action<IAppBuilder> PostWireMockMiddlewareInit { get; set; }
|
|
|
|
IFileSystemHandler FileSystemHandler { get; set; }
|
|
|
|
bool? AllowBodyForAllHttpMethods { get; set; }
|
|
|
|
bool? AllowAnyHttpStatusCodeInResponse { get; set; }
|
|
|
|
bool? DisableJsonBodyParsing { get; set; }
|
|
}
|
|
} |