using System; using HandlebarsDotNet; using JetBrains.Annotations; using WireMock.Handlers; using WireMock.Logging; namespace WireMock.Settings { /// /// IFluentMockServerSettings /// public interface IFluentMockServerSettings { /// /// Gets or sets the port. /// [PublicAPI] int? Port { get; set; } /// /// Gets or sets the use SSL. /// // ReSharper disable once InconsistentNaming [PublicAPI] bool? UseSSL { get; set; } /// /// Gets or sets whether to start admin interface. /// [PublicAPI] bool? StartAdminInterface { get; set; } /// /// Gets or sets if the static mappings should be read at startup. /// [PublicAPI] bool? ReadStaticMappings { get; set; } /// /// Watch the static mapping files + folder for changes when running. /// [PublicAPI] bool? WatchStaticMappings { get; set; } /// /// A value indicating whether subdirectories within the static mappings path should be monitored. /// [PublicAPI] bool? WatchStaticMappingsInSubdirectories { get; set; } /// /// Gets or sets if the proxy and record settings. /// [PublicAPI] IProxyAndRecordSettings ProxyAndRecordSettings { get; set; } /// /// Gets or sets the urls. /// [PublicAPI] string[] Urls { get; set; } /// /// StartTimeout /// [PublicAPI] int StartTimeout { get; set; } /// /// Allow Partial Mapping (default set to false). /// [PublicAPI] bool? AllowPartialMapping { get; set; } /// /// The username needed for __admin access. /// [PublicAPI] string AdminUsername { get; set; } /// /// The password needed for __admin access. /// [PublicAPI] string AdminPassword { get; set; } /// /// The RequestLog expiration in hours (optional). /// [PublicAPI] int? RequestLogExpirationDuration { get; set; } /// /// The MaxRequestLog count (optional). /// [PublicAPI] int? MaxRequestLogCount { get; set; } /// /// Action which is called (with the IAppBuilder or IApplicationBuilder) before the internal WireMockMiddleware is initialized. [Optional] /// [PublicAPI] Action PreWireMockMiddlewareInit { get; set; } /// /// Action which is called (with the IAppBuilder or IApplicationBuilder) after the internal WireMockMiddleware is initialized. [Optional] /// [PublicAPI] Action PostWireMockMiddlewareInit { get; set; } /// /// The IWireMockLogger which logs Debug, Info, Warning or Error /// [PublicAPI] IWireMockLogger Logger { get; set; } /// /// Handler to interact with the file system to read and write static mapping files. /// [PublicAPI] IFileSystemHandler FileSystemHandler { get; set; } /// /// Action which can be used to add additional Handlebars registrations. [Optional] /// [PublicAPI] Action HandlebarsRegistrationCallback { get; set; } /// /// Allow the usage of CSharpCodeMatcher (default is not allowed). /// [PublicAPI] bool? AllowCSharpCodeMatcher { get; set; } /// /// Allow a Body for all HTTP Methods. (default set to false). /// [PublicAPI] bool? AllowBodyForAllHttpMethods { get; set; } } }