| | | 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 IAppBuilder = Microsoft.AspNetCore.Builder.IApplicationBuilder; |
| | | 11 | | #endif |
| | | 12 | | |
| | | 13 | | namespace WireMock.Owin |
| | | 14 | | { |
| | | 15 | | internal class WireMockMiddlewareOptions : IWireMockMiddlewareOptions |
| | | 16 | | { |
| | 151 | 17 | | public IWireMockLogger Logger { get; set; } |
| | | 18 | | |
| | 30 | 19 | | public TimeSpan? RequestProcessingDelay { get; set; } |
| | | 20 | | |
| | 18 | 21 | | public IStringMatcher AuthorizationMatcher { get; set; } |
| | | 22 | | |
| | 49 | 23 | | public bool AllowPartialMapping { get; set; } |
| | | 24 | | |
| | 661 | 25 | | public ConcurrentDictionary<Guid, IMapping> Mappings { get; } = new ConcurrentDictionary<Guid, IMapping>(); |
| | | 26 | | |
| | 180 | 27 | | public ConcurrentDictionary<string, ScenarioState> Scenarios { get; } = new ConcurrentDictionary<string, Scenari |
| | | 28 | | |
| | 102 | 29 | | public ObservableCollection<LogEntry> LogEntries { get; } = new ConcurentObservableCollection<LogEntry>(); |
| | | 30 | | |
| | 51 | 31 | | public int? RequestLogExpirationDuration { get; set; } |
| | | 32 | | |
| | 53 | 33 | | public int? MaxRequestLogCount { get; set; } |
| | | 34 | | |
| | 94 | 35 | | public Action<IAppBuilder> PreWireMockMiddlewareInit { get; set; } |
| | | 36 | | |
| | 94 | 37 | | public Action<IAppBuilder> PostWireMockMiddlewareInit { get; set; } |
| | | 38 | | } |
| | | 39 | | } |