Class TransientConnectionInformation
Information about a transient connection
Inherited Members
Namespace: MESL.SqlRace.Domain
Assembly: MESL.SqlRace.Domain.dll
Syntax
public sealed class TransientConnectionInformation : ConnectionInformationBase
Constructors
TransientConnectionInformation(String)
Constructor
Declaration
public TransientConnectionInformation(string connectionString)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString | The connection string |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if connection string is null |
Properties
ConnectionString
Gets the connection string.
Declaration
public override string ConnectionString { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
PortNumber
Gets the port number.
Declaration
public override int PortNumber { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Overrides
RemoteIpAddress
Gets the remote IP address.
Declaration
public override string RemoteIpAddress { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
Create()
Create default transient connection information
Declaration
public static TransientConnectionInformation Create()
Returns
Type | Description |
---|---|
TransientConnectionInformation | Default transient connection information |
GetContextKey()
Gets the context key.
Declaration
public override string GetContextKey()
Returns
Type | Description |
---|---|
System.String | Returns context key |