C# Class Bebbs.Harmonize.With.Messaging.Via.SignalR.Service.HarmonizeHub

Inheritance: Hub
Exibir arquivo Open project: ibebbs/Harmonize

Public Methods

Method Description
Deregister ( Common.Dto.Identity registrar, Common.Dto.Entity entity ) : void

Deregisters the specified Component.IEntity and ensures that messages are no longer received for the entity

HarmonizeHub ( IHarmonizeConnector connector ) : Microsoft.AspNet.SignalR
Observe ( Common.Dto.Identity registrar, Common.Dto.Identity entity, Common.Dto.Identity source, Common.Dto.Identity observable ) : void

Observes the observable with the specified Component.Identity of the entity with the specified Component.Identity

Register ( Common.Dto.Identity registrar, Common.Dto.Entity entity ) : void

Registers the specified Component.IEntity and ensures messages destined for the entity are routed to the specified consumer

Private Methods

Method Description
Process ( string connectionId, Common.Dto.Identity registrar, Common.Dto.Identity entity, Common.Dto.Message message ) : void

Method Details

Deregister() public method

Deregisters the specified Component.IEntity and ensures that messages are no longer received for the entity
public Deregister ( Common.Dto.Identity registrar, Common.Dto.Entity entity ) : void
registrar Common.Dto.Identity The host deregistering the entity
entity Common.Dto.Entity
return void

HarmonizeHub() public method

public HarmonizeHub ( IHarmonizeConnector connector ) : Microsoft.AspNet.SignalR
connector IHarmonizeConnector
return Microsoft.AspNet.SignalR

Observe() public method

Observes the observable with the specified Component.Identity of the entity with the specified Component.Identity
public Observe ( Common.Dto.Identity registrar, Common.Dto.Identity entity, Common.Dto.Identity source, Common.Dto.Identity observable ) : void
registrar Common.Dto.Identity
entity Common.Dto.Identity The observer entity
source Common.Dto.Identity The observed entity
observable Common.Dto.Identity The observable
return void

Register() public method

Registers the specified Component.IEntity and ensures messages destined for the entity are routed to the specified consumer
public Register ( Common.Dto.Identity registrar, Common.Dto.Entity entity ) : void
registrar Common.Dto.Identity The host registering the entity
entity Common.Dto.Entity The entity to register
return void