Class ConnectionResolutionOptions
- Namespace
- Cratis.Arc.Connections
- Assembly
- Cratis.Arc.Core.dll
Represents the options for resolving connections.
public class ConnectionResolutionOptions
- Inheritance
-
ConnectionResolutionOptions
- Inherited Members
- Extension Methods
Remarks
A connection is resolved through two slots, each with the same shape. The result of Connection is applied over the configured connection first, and the result of Identity on top of that. This makes it possible to keep a configured connection string and only resolve the identity, or the other way around.
Constructors
ConnectionResolutionOptions()
public ConnectionResolutionOptions()
Properties
CacheDuration
Gets or sets how long a resolved connection is kept in memory when the resolver does not say when it expires.
public TimeSpan CacheDuration { get; set; }
Property Value
Remarks
Resolved connections are only ever kept in memory. Set to Zero to resolve every time.
Connection
Gets or sets the resolver for where to connect — connection string, database and schema.
public ConnectionResolverOptions Connection { get; set; }
Property Value
Identity
Gets or sets the resolver for who to connect as.
public ConnectionResolverOptions Identity { get; set; }
Property Value
IsConfigured
Gets a value indicating whether any slot resolves anything. When not, the configured connection is used as it is.
public bool IsConfigured { get; }