IConnectionKeyFallbacks interface
namespace: Serenity.Data assembly: Serenity.Net.Services
Abstraction to access connection key fallbacks.
public interface IConnectionKeyFallbacks
Members
| name | description |
|---|---|
| GetConnectionKeyFallbacks(…) | Gets the ordered fallback chain for a connection key, starting with the key itself followed by its declared fallbacks. This reflects only the declared ConnectionKeyFallbackAttribute values and does not check configuration. |
| GetConnectionKeysResolvingTo(…) | Returns all connection keys (including themselves) whose fallback chain resolves to the specified connection key. Only keys that actually resolve to a configured connection are included, so this is a configuration-aware operation. |
| ResolveConnectionKey(…) | Resolves a connection key to the first key in its fallback chain that is actually configured. Returns null if none of the keys in the chain are configured. |
Remarks
A connection key fallback maps a logical connection key (e.g. "ProMeeting") to another connection key (e.g. "Default") that should be used when the logical key is not present in configuration. This allows feature modules to declare their own connection key while still working in applications that only configure the fallback key.
See Also
- Source: IConnectionKeyFallbacks.cs