mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-18 23:33:47 +01:00
* net451 * tests : net462 * fixed tests * fix tests * readme * Code review * LocalFileSystemHandlerTests * refactor
45 lines
1.4 KiB
C#
45 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Concurrent;
|
|
using System.Collections.ObjectModel;
|
|
using WireMock.Logging;
|
|
using WireMock.Matchers;
|
|
using WireMock.Util;
|
|
#if !USE_ASPNETCORE
|
|
using Owin;
|
|
#else
|
|
using Microsoft.AspNetCore.Builder;
|
|
#endif
|
|
|
|
namespace WireMock.Owin
|
|
{
|
|
internal class WireMockMiddlewareOptions
|
|
{
|
|
public IWireMockLogger Logger { get; set; }
|
|
|
|
public TimeSpan? RequestProcessingDelay { get; set; }
|
|
|
|
public IStringMatcher AuthorizationMatcher { get; set; }
|
|
|
|
public bool AllowPartialMapping { get; set; }
|
|
|
|
public ConcurrentDictionary<Guid, Mapping> Mappings { get; } = new ConcurrentDictionary<Guid, Mapping>();
|
|
|
|
public ConcurrentDictionary<string, ScenarioState> Scenarios { get; } = new ConcurrentDictionary<string, ScenarioState>();
|
|
|
|
public ObservableCollection<LogEntry> LogEntries { get; } = new ConcurentObservableCollection<LogEntry>();
|
|
|
|
public int? RequestLogExpirationDuration { get; set; }
|
|
|
|
public int? MaxRequestLogCount { get; set; }
|
|
|
|
#if !USE_ASPNETCORE
|
|
public Action<IAppBuilder> PreWireMockMiddlewareInit { get; set; }
|
|
|
|
public Action<IAppBuilder> PostWireMockMiddlewareInit { get; set; }
|
|
#else
|
|
public Action<IApplicationBuilder> PreWireMockMiddlewareInit { get; set; }
|
|
|
|
public Action<IApplicationBuilder> PostWireMockMiddlewareInit { get; set; }
|
|
#endif
|
|
}
|
|
} |