EventSinkManager

Overview

This class manages the available events and the lists of individual clients subscribed to these events on the server.

You will usually not access the public methopds of this class directly, but use the respective methods exposed by the Service base class, which does the handling of Client/Session IDs for you.

However, an instance of this class needs to be dropped (or manually created) in your server application and a Message needs to be assigned, for event handling to be available.

Location

Implements

 

constructor

 

constructor

 

EventSinkManager()

 

Sub New

GetEventSink (Guid, Type): IROEventSink

Obtains a event sink proxy for the specified interface. The result value can be cast back to the event sink interface in question and then be used to call the event sink's methods. The event calls will be encoded using the Message property and then queued in the global MessageQueueManager.

 

method GetEventSink(clientId: Guid; eventSink: Type): IROEventSink

 

IROEventSink GetEventSink(Guid clientId, Type eventSink)

 

Function GetEventSink(clientId As Guid, eventSink As Type) As IROEventSink

Parameters:

  • clientId:
  • eventSink:

GetEventSink (Guid, Type, IEventTargets): IROEventSink

 

method GetEventSink(clientId: Guid; eventSink: Type; eventTargets: IEventTargets): IROEventSink

 

IROEventSink GetEventSink(Guid clientId, Type eventSink, IEventTargets eventTargets)

 

Function GetEventSink(clientId As Guid, eventSink As Type, eventTargets As IEventTargets) As IROEventSink

Parameters:

  • clientId:
  • eventSink:
  • eventTargets:

GlobalEventSinkManager

 

class property GlobalEventSinkManager: IEventSinkManager read;

 

class IEventSinkManager GlobalEventSinkManager { get; }

 

Shared Property ReadOnly GlobalEventSinkManager As IEventSinkManager

Message

The message that will be used to encode all outgoing events.

 

property Message: IMessage read write;

 

IMessage Message { get; set; }

 

Property Message As IMessage

RegisterEventSinkManager  protected

 

class method RegisterEventSinkManager(eventSinkManager: IEventSinkManager)

 

static void RegisterEventSinkManager(IEventSinkManager eventSinkManager)

 

Shared Sub RegisterEventSinkManager(eventSinkManager As IEventSinkManager)

Parameters:

  • eventSinkManager:

RegisterEventSinkProxyClass

 

class method RegisterEventSinkProxyClass(eventSink: Type; eventSinkProxy: Type)

 

static void RegisterEventSinkProxyClass(Type eventSink, Type eventSinkProxy)

 

Shared Sub RegisterEventSinkProxyClass(eventSink As Type, eventSinkProxy As Type)

Parameters:

  • eventSink:
  • eventSinkProxy:

SubscribeClient

 

class method SubscribeClient(clientId: Guid; eventSink: Type)

 

static void SubscribeClient(Guid clientId, Type eventSink)

 

Shared Sub SubscribeClient(clientId As Guid, eventSink As Type)

Parameters:

  • clientId:
  • eventSink:

UnregisterEventSinkManager  protected

 

class method UnregisterEventSinkManager(eventSinkManager: IEventSinkManager)

 

static void UnregisterEventSinkManager(IEventSinkManager eventSinkManager)

 

Shared Sub UnregisterEventSinkManager(eventSinkManager As IEventSinkManager)

Parameters:

  • eventSinkManager:

UnsubscribeClient (Guid)

 

class method UnsubscribeClient(clientId: Guid)

 

static void UnsubscribeClient(Guid clientId)

 

Shared Sub UnsubscribeClient(clientId As Guid)

Parameters:

  • clientId:

UnsubscribeClient (Guid, Type)

 

class method UnsubscribeClient(clientId: Guid; eventSink: Type)

 

static void UnsubscribeClient(Guid clientId, Type eventSink)

 

Shared Sub UnsubscribeClient(clientId As Guid, eventSink As Type)

Parameters:

  • clientId:
  • eventSink:

 

Message

The message that will be used to encode all outgoing events.

 

property Message: IMessage read write;

 

IMessage Message { get; set; }

 

Property Message As IMessage

GlobalEventSinkManager

 

class property GlobalEventSinkManager: IEventSinkManager read;

 

class IEventSinkManager GlobalEventSinkManager { get; }

 

Shared Property ReadOnly GlobalEventSinkManager As IEventSinkManager

 

RegisterEventSinkManager  protected

 

class method RegisterEventSinkManager(eventSinkManager: IEventSinkManager)

 

static void RegisterEventSinkManager(IEventSinkManager eventSinkManager)

 

Shared Sub RegisterEventSinkManager(eventSinkManager As IEventSinkManager)

Parameters:

  • eventSinkManager:

RegisterEventSinkProxyClass

 

class method RegisterEventSinkProxyClass(eventSink: Type; eventSinkProxy: Type)

 

static void RegisterEventSinkProxyClass(Type eventSink, Type eventSinkProxy)

 

Shared Sub RegisterEventSinkProxyClass(eventSink As Type, eventSinkProxy As Type)

Parameters:

  • eventSink:
  • eventSinkProxy:

SubscribeClient

 

class method SubscribeClient(clientId: Guid; eventSink: Type)

 

static void SubscribeClient(Guid clientId, Type eventSink)

 

Shared Sub SubscribeClient(clientId As Guid, eventSink As Type)

Parameters:

  • clientId:
  • eventSink:

UnregisterEventSinkManager  protected

 

class method UnregisterEventSinkManager(eventSinkManager: IEventSinkManager)

 

static void UnregisterEventSinkManager(IEventSinkManager eventSinkManager)

 

Shared Sub UnregisterEventSinkManager(eventSinkManager As IEventSinkManager)

Parameters:

  • eventSinkManager:

UnsubscribeClient (Guid)

 

class method UnsubscribeClient(clientId: Guid)

 

static void UnsubscribeClient(Guid clientId)

 

Shared Sub UnsubscribeClient(clientId As Guid)

Parameters:

  • clientId:

UnsubscribeClient (Guid, Type)

 

class method UnsubscribeClient(clientId: Guid; eventSink: Type)

 

static void UnsubscribeClient(Guid clientId, Type eventSink)

 

Shared Sub UnsubscribeClient(clientId As Guid, eventSink As Type)

Parameters:

  • clientId:
  • eventSink:

 

constructor

 

constructor

 

EventSinkManager()

 

Sub New

GetEventSink (Guid, Type): IROEventSink

Obtains a event sink proxy for the specified interface. The result value can be cast back to the event sink interface in question and then be used to call the event sink's methods. The event calls will be encoded using the Message property and then queued in the global MessageQueueManager.

 

method GetEventSink(clientId: Guid; eventSink: Type): IROEventSink

 

IROEventSink GetEventSink(Guid clientId, Type eventSink)

 

Function GetEventSink(clientId As Guid, eventSink As Type) As IROEventSink

Parameters:

  • clientId:
  • eventSink:

GetEventSink (Guid, Type, IEventTargets): IROEventSink

 

method GetEventSink(clientId: Guid; eventSink: Type; eventTargets: IEventTargets): IROEventSink

 

IROEventSink GetEventSink(Guid clientId, Type eventSink, IEventTargets eventTargets)

 

Function GetEventSink(clientId As Guid, eventSink As Type, eventTargets As IEventTargets) As IROEventSink

Parameters:

  • clientId:
  • eventSink:
  • eventTargets: