Class RemoteConnectionInformation
Represents a remote connection.
Inherited Members
Namespace: MESL.SqlRace.Domain
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class RemoteConnectionInformation : ConnectionInformationBase
Remarks
Remote connections are used when connecting to a remote instance of SQL Race server. Example:
- SqlRaceServer:RemoteIpAddress=192.168.2.1#Port=5099#LocalConnectionString=
Constructors
RemoteConnectionInformation(String, Int32, String)
Initialises a new instance of the RemoteConnectionInformation class.
Declaration
public RemoteConnectionInformation(string remoteIpAddress, int portNumber, string localConnectionString)
Parameters
Type | Name | Description |
---|---|---|
System.String | remoteIpAddress | The remote ip address. |
System.Int32 | portNumber | The port number. |
System.String | localConnectionString | The connection string for the local database where the session is stored |
Properties
ConnectionString
Not used for a RemoteConnectionInformation
.
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
GetContextKey()
For a RemoteConnectionInformation
, returns the remote IP address and port number.
Declaration
public override string GetContextKey()
Returns
Type | Description |
---|---|
System.String | Remote IP address and port number |