Class InMemoryHostOverride
- Namespace
- Whipstaff.Runtime.HostOverride
- Assembly
- Whipstaff.Runtime.dll
An in memory implementation of a host override.
public sealed class InMemoryHostOverride : IHostOverride
- Inheritance
-
InMemoryHostOverride
- Implements
- Inherited Members
Constructors
InMemoryHostOverride(IDictionary<string, string>, ILogger<InMemoryHostOverride>)
Initializes a new instance of the InMemoryHostOverride class.
public InMemoryHostOverride(IDictionary<string, string> mappings, ILogger<InMemoryHostOverride> logger)
Parameters
mappings
IDictionary<string, string>Dictionary of mappings.
logger
ILogger<InMemoryHostOverride>Logging Framework instance.
Methods
Resolve(string)
Returns an overridable hostname.
public string? Resolve(string host)
Parameters
host
stringThe host to check.
Returns
- string
A target host, or null if no override.