C# Class GSF.ServiceBus.ServiceBusService

Inheritance: GSF.ServiceModel.SelfHostingService, IServiceBusService
Afficher le fichier Open project: GridProtectionAlliance/gsf

Méthodes publiques

Méthode Description
GetClients ( ) : ICollection

Gets a list of all clients connected to the ServiceBusService.

GetLatestMessage ( GSF.ServiceBus.RegistrationRequest topic ) : GSF.ServiceBus.Message

Gets the latest Message distributed to the subscribers of the specified topic.

GetQueues ( ) : ICollection

Gets a list of all MessageType.Queues registered on the ServiceBusService.

GetTopics ( ) : ICollection

Gets a list of all MessageType.Topics registered on the ServiceBusService.

Initialize ( ) : void

Initializes the ServiceBusService.

LoadSettings ( ) : void

Loads saved ServiceBusService settings from the config file if the GSF.Adapters.Adapter.PersistSettings property is set to true.

Publish ( GSF.ServiceBus.Message message ) : void

Sends the message to the ServiceBusService for distribution amongst its registered consumers.

Register ( GSF.ServiceBus.RegistrationRequest request ) : void

Registers with the ServiceBusService to produce or consume Messages.

SaveSettings ( ) : void

Saves ServiceBusService settings to the config file if the GSF.Adapters.Adapter.PersistSettings property is set to true.

Unregister ( GSF.ServiceBus.RegistrationRequest request ) : void

Unregisters a previous registration with the ServiceBusService to produce or consume Messages

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the ServiceBusService object and optionally releases the managed resources.

OnServiceHostCreated ( ) : void

Raises the SelfHostingService.ServiceHostCreated event.

Private Methods

Méthode Description
DisconnectClient ( string clientId ) : void
LoadMessages ( ) : void
OnChannelClosing ( object sender, EventArgs e ) : void
OnChannelFaulted ( object sender, EventArgs e ) : void
OnProcessException ( object sender, EventArgs e ) : void
PublishComplete ( PublishContext context ) : void
PublishMessages ( PublishContext contexts ) : void
SaveMessages ( ) : void
ServiceBusService ( ) : System

Method Details

Dispose() protected méthode

Releases the unmanaged resources used by the ServiceBusService object and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Résultat void

GetClients() public méthode

Gets a list of all clients connected to the ServiceBusService.
public GetClients ( ) : ICollection
Résultat ICollection

GetLatestMessage() public méthode

Gets the latest Message distributed to the subscribers of the specified topic.
public GetLatestMessage ( GSF.ServiceBus.RegistrationRequest topic ) : GSF.ServiceBus.Message
topic GSF.ServiceBus.RegistrationRequest The topic used when registering.
Résultat GSF.ServiceBus.Message

GetQueues() public méthode

Gets a list of all MessageType.Queues registered on the ServiceBusService.
public GetQueues ( ) : ICollection
Résultat ICollection

GetTopics() public méthode

Gets a list of all MessageType.Topics registered on the ServiceBusService.
public GetTopics ( ) : ICollection
Résultat ICollection

Initialize() public méthode

Initializes the ServiceBusService.
The specified is not supported.
public Initialize ( ) : void
Résultat void

LoadSettings() public méthode

Loads saved ServiceBusService settings from the config file if the GSF.Adapters.Adapter.PersistSettings property is set to true.
public LoadSettings ( ) : void
Résultat void

OnServiceHostCreated() protected méthode

Raises the SelfHostingService.ServiceHostCreated event.
protected OnServiceHostCreated ( ) : void
Résultat void

Publish() public méthode

Sends the message to the ServiceBusService for distribution amongst its registered consumers.
public Publish ( GSF.ServiceBus.Message message ) : void
message GSF.ServiceBus.Message The that is to be distributed.
Résultat void

Register() public méthode

Registers with the ServiceBusService to produce or consume Messages.
public Register ( GSF.ServiceBus.RegistrationRequest request ) : void
request GSF.ServiceBus.RegistrationRequest An containing registration data.
Résultat void

SaveSettings() public méthode

Saves ServiceBusService settings to the config file if the GSF.Adapters.Adapter.PersistSettings property is set to true.
public SaveSettings ( ) : void
Résultat void

Unregister() public méthode

Unregisters a previous registration with the ServiceBusService to produce or consume Messages
public Unregister ( GSF.ServiceBus.RegistrationRequest request ) : void
request GSF.ServiceBus.RegistrationRequest The used when registering.
Résultat void