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