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.Boolean | 
ServerEndPoint
The server end point
Declaration
IPEndPoint ServerEndPoint { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Net.IPEndPoint | 
Methods
GetAllSessionSubscriptions()
Get the subscribed sessions
Declaration
List<ClientSubscription> GetAllSessionSubscriptions()
  Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.List<ClientSubscription> | 
GetClientSessionSubscriptions()
Get the client subscribers
Declaration
List<ClientSubscription> GetClientSessionSubscriptions()
  Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.List<ClientSubscription> | 
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 | 
|---|---|---|
| ConnectionContextBase | connectionContext | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
ProcessCloseSessionRequest(Guid, SessionKey, String)
Processes the close session request.
Declaration
void ProcessCloseSessionRequest(Guid clientSubscriptionId, SessionKey sessionKey, string connectionString)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Guid | clientSubscriptionId | The client subscription identifier.  | 
      
| MAT.OCS.Core.SessionKey | sessionKey | The session key.  | 
      
| System.String | 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.Guid | clientSubscriptionId | The client subscription identifier.  | 
      
| MAT.OCS.Core.SessionKey | sessionKey | The session key.  | 
      
| System.String | 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.Guid | clientSubscriptionId | The client subscription identifier.  | 
      
| MAT.OCS.Core.SessionKey | sessionKey | The session key.  | 
      
| System.String | connectionString | The connection string.  | 
      
| System.Guid | senderId | The sender identifier.  |