added ServerConfigurationMapping
split up Abstractions so we have one type per file.
This commit is contained in:
parent
b7631ecdd0
commit
a5cb6ef7d4
13 changed files with 431 additions and 76 deletions
19
pgLabII.PgUtils/ConnectionStrings/IConnectionStringCodec.cs
Normal file
19
pgLabII.PgUtils/ConnectionStrings/IConnectionStringCodec.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
using FluentResults;
|
||||
|
||||
namespace pgLabII.PgUtils.ConnectionStrings;
|
||||
|
||||
/// <summary>
|
||||
/// Codec for a specific connection string format (parse and format only for its own format).
|
||||
/// Do not implement format specifics yet; provide interface only.
|
||||
/// </summary>
|
||||
public interface IConnectionStringCodec
|
||||
{
|
||||
ConnStringFormat Format { get; }
|
||||
string FormatName { get; }
|
||||
|
||||
// Parse input in this codec's format into a descriptor.
|
||||
Result<ConnectionDescriptor> TryParse(string input);
|
||||
|
||||
// Format a descriptor into this codec's format.
|
||||
Result<string> TryFormat(ConnectionDescriptor descriptor);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue