C# Класс GSF.ServiceBus.ServiceBusService

Наследование: GSF.ServiceModel.SelfHostingService, IServiceBusService
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Dispose() защищенный Метод

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.
Результат void

GetClients() публичный Метод

Gets a list of all clients connected to the ServiceBusService.
public GetClients ( ) : ICollection
Результат ICollection

GetLatestMessage() публичный Метод

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.
Результат GSF.ServiceBus.Message

GetQueues() публичный Метод

Gets a list of all MessageType.Queues registered on the ServiceBusService.
public GetQueues ( ) : ICollection
Результат ICollection

GetTopics() публичный Метод

Gets a list of all MessageType.Topics registered on the ServiceBusService.
public GetTopics ( ) : ICollection
Результат ICollection

Initialize() публичный Метод

Initializes the ServiceBusService.
The specified is not supported.
public Initialize ( ) : void
Результат void

LoadSettings() публичный Метод

Loads saved ServiceBusService settings from the config file if the GSF.Adapters.Adapter.PersistSettings property is set to true.
public LoadSettings ( ) : void
Результат void

OnServiceHostCreated() защищенный Метод

Raises the SelfHostingService.ServiceHostCreated event.
protected OnServiceHostCreated ( ) : void
Результат void

Publish() публичный Метод

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.
Результат void

Register() публичный Метод

Registers with the ServiceBusService to produce or consume Messages.
public Register ( GSF.ServiceBus.RegistrationRequest request ) : void
request GSF.ServiceBus.RegistrationRequest An containing registration data.
Результат void

SaveSettings() публичный Метод

Saves ServiceBusService settings to the config file if the GSF.Adapters.Adapter.PersistSettings property is set to true.
public SaveSettings ( ) : void
Результат void

Unregister() публичный Метод

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.
Результат void