| | | 1 | | using System; |
| | | 2 | | using System.Collections.Concurrent; |
| | | 3 | | using System.Collections.ObjectModel; |
| | | 4 | | using WireMock.Logging; |
| | | 5 | | using WireMock.Matchers; |
| | | 6 | | using WireMock.Util; |
| | | 7 | | #if !USE_ASPNETCORE |
| | | 8 | | using Owin; |
| | | 9 | | #else |
| | | 10 | | using Microsoft.AspNetCore.Builder; |
| | | 11 | | #endif |
| | | 12 | | |
| | | 13 | | namespace WireMock.Owin |
| | | 14 | | { |
| | | 15 | | internal class WireMockMiddlewareOptions |
| | | 16 | | { |
| | 189 | 17 | | public IWireMockLogger Logger { get; set; } |
| | | 18 | | |
| | 46 | 19 | | public TimeSpan? RequestProcessingDelay { get; set; } |
| | | 20 | | |
| | 18 | 21 | | public IStringMatcher AuthorizationMatcher { get; set; } |
| | | 22 | | |
| | 66 | 23 | | public bool AllowPartialMapping { get; set; } |
| | | 24 | | |
| | 753 | 25 | | public ConcurrentDictionary<Guid, Mapping> Mappings { get; } = new ConcurrentDictionary<Guid, Mapping>(); |
| | | 26 | | |
| | 188 | 27 | | public ConcurrentDictionary<string, ScenarioState> Scenarios { get; } = new ConcurrentDictionary<string, Scenari |
| | | 28 | | |
| | 140 | 29 | | public ObservableCollection<LogEntry> LogEntries { get; } = new ConcurentObservableCollection<LogEntry>(); |
| | | 30 | | |
| | 68 | 31 | | public int? RequestLogExpirationDuration { get; set; } |
| | | 32 | | |
| | 72 | 33 | | public int? MaxRequestLogCount { get; set; } |
| | | 34 | | |
| | | 35 | | #if !USE_ASPNETCORE |
| | | 36 | | public Action<IAppBuilder> PreWireMockMiddlewareInit { get; set; } |
| | | 37 | | |
| | | 38 | | public Action<IAppBuilder> PostWireMockMiddlewareInit { get; set; } |
| | | 39 | | #else |
| | 110 | 40 | | public Action<IApplicationBuilder> PreWireMockMiddlewareInit { get; set; } |
| | | 41 | | |
| | 110 | 42 | | public Action<IApplicationBuilder> PostWireMockMiddlewareInit { get; set; } |
| | | 43 | | #endif |
| | | 44 | | } |
| | | 45 | | } |