C# 클래스 GSF.ServiceBus.ServiceBusService

상속: GSF.ServiceModel.SelfHostingService, IServiceBusService
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf

공개 메소드들

메소드 설명
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