Interface IServerListener
Namespace: MESL.SqlRace.Domain.Remoting.Server
Assembly: MESL.SqlRace.Domain.dll
Syntax
public interface IServerListener
Properties
IsRunning
Server is running
Declaration
bool IsRunning { get; }
Property Value
Type | Description |
---|---|
System. |
ServerEndPoint
The server end point
Declaration
IPEndPoint ServerEndPoint { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
GetAllSessionSubscriptions()
Get the subscribed sessions
Declaration
List<ClientSubscription> GetAllSessionSubscriptions()
Returns
Type | Description |
---|---|
System. |
GetClientSessionSubscriptions()
Get the client subscribers
Declaration
List<ClientSubscription> GetClientSessionSubscriptions()
Returns
Type | Description |
---|---|
System. |
Initialize()
Initialize
Declaration
void Initialize()
IsRunningOn(ConnectionContextBase)
Check ifthe server listener run on a specific Db
Declaration
bool IsRunningOn(ConnectionContextBase connectionContext)
Parameters
Type | Name | Description |
---|---|---|
Connection |
connectionContext |
Returns
Type | Description |
---|---|
System. |
ProcessCloseSessionRequest(Guid, SessionKey, String)
Processes the close session request.
Declaration
void ProcessCloseSessionRequest(Guid clientSubscriptionId, SessionKey sessionKey, string connectionString)
Parameters
Type | Name | Description |
---|---|---|
System. |
clientSubscriptionId | The client subscription identifier. |
MAT. |
sessionKey | The session key. |
System. |
connectionString | The connection string. |
Start()
Start the server
Declaration
void Start()
Stop()
Stop the server
Declaration
void Stop()
SubscribeClient(Guid, SessionKey, String)
Subscribes the client.
Declaration
void SubscribeClient(Guid clientSubscriptionId, SessionKey sessionKey, string connectionString)
Parameters
Type | Name | Description |
---|---|---|
System. |
clientSubscriptionId | The client subscription identifier. |
MAT. |
sessionKey | The session key. |
System. |
connectionString | The connection string. |
SubscribeClient(Guid, SessionKey, String, Guid)
Subscribes the client.
Declaration
void SubscribeClient(Guid clientSubscriptionId, SessionKey sessionKey, string connectionString, Guid senderId)
Parameters
Type | Name | Description |
---|---|---|
System. |
clientSubscriptionId | The client subscription identifier. |
MAT. |
sessionKey | The session key. |
System. |
connectionString | The connection string. |
System. |
senderId | The sender identifier. |