C# Class ServiceBusMQ.SbmqSystem

Exibir arquivo Open project: danielHalan/ServiceBusMQManager Class Usage Examples

Public Properties

Property Type Description
MAX_ITEMS_PER_QUEUE int

Protected Properties

Property Type Description
_finishedLoadingQueues EventHandler
_itemsChanged EventHandler
_itemsLock object
_log System.Logger
_startedLoadingQueues EventHandler

Private Properties

Property Type Description
CreateServiceBusManager void
Initialize void
InvokeWhileMonitoringPaused void
MonitorStateChanged void
SbmqSystem System
SbmqmDomain_AssemblyResolve System.Reflection.Assembly
System_ErrorOccured void
System_ItemsChanged void
System_WarningOccured void

Public Methods

Method Description
ClearFilter ( ) : void
ClearProcessedItems ( ) : void
Create ( ) : SbmqSystem
ExecMonitor ( object prm ) : void
FilterItems ( string str ) : void
GetAvailableCommands ( bool suppressErrors = false ) : System.Type[]
GetAvailableCommands ( string _asmPath, ServiceBusMQ.CommandDefinition cmdDef, bool suppressErrors = false ) : System.Type[]
GetAvailableCommands ( string messageBus, string version, string queueType, string asmPaths, ServiceBusMQ.CommandDefinition cmdDef, bool suppressErrors ) : System.Type[]
GetDiscoveryService ( ) : IServiceBusDiscovery
GetDiscoveryService ( string messageBus, string version, string queueType ) : IServiceBusDiscovery
GetMessageSubscriptions ( object>.Dictionary connectionSettings, IEnumerable queues ) : ServiceBusMQ.MessageSubscription[]
GetMessageSubscriptions ( ServerConfig3 server ) : ServiceBusMQ.MessageSubscription[]
GetUnprocessedItemsCount ( QueueType qt ) : uint
MoveAllErrorMessagesToOriginQueue ( string errorQueue ) : Task
MoveErrorMessageToOriginQueue ( QueueItem itm ) : Task
PauseMonitoring ( ) : void
PurgeAllMessages ( ) : Task
PurgeErrorAllMessages ( ) : Task
PurgeErrorMessages ( string queueName ) : Task
PurgeMessage ( QueueItem itm ) : void
PurgeMessages ( IEnumerable itms ) : Task
RefreshUnprocessedQueueItemList ( ) : bool
ResumeMonitoring ( ) : void
RetrieveProcessedQueueItems ( System.TimeSpan timeSpan ) : void
SendCommand ( object>.Dictionary connectionStrings, string destinationQueue, object message ) : void
StartMonitoring ( ) : void
StopMonitoring ( ) : void
SwitchServiceBus ( string serviceBus, string version, string queueType ) : void

Protected Methods

Method Description
OnError ( ServiceBusMQ.Manager.ErrorArgs arg ) : void
OnError ( string message, Exception exception = null, bool fatal = false ) : void
OnFinishedLoadingQueues ( ) : void
OnItemsChanged ( ItemChangeOrigin origin ) : void
OnStartedLoadingQueues ( ) : void
OnWarning ( ServiceBusMQ.Manager.WarningArgs arg ) : void

Private Methods

Method Description
CreateServiceBusManager ( string serviceBus, string version, string queueType ) : void
Initialize ( ) : void
InvokeWhileMonitoringPaused ( System.Action a ) : void
MonitorStateChanged ( QueueType type, bool value ) : void
SbmqSystem ( ) : System
SbmqmDomain_AssemblyResolve ( object sender, ResolveEventArgs args ) : Assembly
System_ErrorOccured ( object sender, ServiceBusMQ.Manager.ErrorArgs e ) : void
System_ItemsChanged ( object sender, EventArgs e ) : void
System_WarningOccured ( object sender, ServiceBusMQ.Manager.WarningArgs e ) : void

Method Details

ClearFilter() public method

public ClearFilter ( ) : void
return void

ClearProcessedItems() public method

public ClearProcessedItems ( ) : void
return void

Create() public static method

public static Create ( ) : SbmqSystem
return SbmqSystem

ExecMonitor() public method

public ExecMonitor ( object prm ) : void
prm object
return void

FilterItems() public method

public FilterItems ( string str ) : void
str string
return void

GetAvailableCommands() public method

public GetAvailableCommands ( bool suppressErrors = false ) : System.Type[]
suppressErrors bool
return System.Type[]

GetAvailableCommands() public method

public GetAvailableCommands ( string _asmPath, ServiceBusMQ.CommandDefinition cmdDef, bool suppressErrors = false ) : System.Type[]
_asmPath string
cmdDef ServiceBusMQ.CommandDefinition
suppressErrors bool
return System.Type[]

GetAvailableCommands() public method

public GetAvailableCommands ( string messageBus, string version, string queueType, string asmPaths, ServiceBusMQ.CommandDefinition cmdDef, bool suppressErrors ) : System.Type[]
messageBus string
version string
queueType string
asmPaths string
cmdDef ServiceBusMQ.CommandDefinition
suppressErrors bool
return System.Type[]

GetDiscoveryService() public method

public GetDiscoveryService ( ) : IServiceBusDiscovery
return IServiceBusDiscovery

GetDiscoveryService() public method

public GetDiscoveryService ( string messageBus, string version, string queueType ) : IServiceBusDiscovery
messageBus string
version string
queueType string
return IServiceBusDiscovery

GetMessageSubscriptions() public method

public GetMessageSubscriptions ( object>.Dictionary connectionSettings, IEnumerable queues ) : ServiceBusMQ.MessageSubscription[]
connectionSettings object>.Dictionary
queues IEnumerable
return ServiceBusMQ.MessageSubscription[]

GetMessageSubscriptions() public method

public GetMessageSubscriptions ( ServerConfig3 server ) : ServiceBusMQ.MessageSubscription[]
server ServerConfig3
return ServiceBusMQ.MessageSubscription[]

GetUnprocessedItemsCount() public method

public GetUnprocessedItemsCount ( QueueType qt ) : uint
qt QueueType
return uint

MoveAllErrorMessagesToOriginQueue() public method

public MoveAllErrorMessagesToOriginQueue ( string errorQueue ) : Task
errorQueue string
return Task

MoveErrorMessageToOriginQueue() public method

public MoveErrorMessageToOriginQueue ( QueueItem itm ) : Task
itm QueueItem
return Task

OnError() protected method

protected OnError ( ServiceBusMQ.Manager.ErrorArgs arg ) : void
arg ServiceBusMQ.Manager.ErrorArgs
return void

OnError() protected method

protected OnError ( string message, Exception exception = null, bool fatal = false ) : void
message string
exception System.Exception
fatal bool
return void

OnFinishedLoadingQueues() protected method

protected OnFinishedLoadingQueues ( ) : void
return void

OnItemsChanged() protected method

protected OnItemsChanged ( ItemChangeOrigin origin ) : void
origin ItemChangeOrigin
return void

OnStartedLoadingQueues() protected method

protected OnStartedLoadingQueues ( ) : void
return void

OnWarning() protected method

protected OnWarning ( ServiceBusMQ.Manager.WarningArgs arg ) : void
arg ServiceBusMQ.Manager.WarningArgs
return void

PauseMonitoring() public method

public PauseMonitoring ( ) : void
return void

PurgeAllMessages() public method

public PurgeAllMessages ( ) : Task
return Task

PurgeErrorAllMessages() public method

public PurgeErrorAllMessages ( ) : Task
return Task

PurgeErrorMessages() public method

public PurgeErrorMessages ( string queueName ) : Task
queueName string
return Task

PurgeMessage() public method

public PurgeMessage ( QueueItem itm ) : void
itm QueueItem
return void

PurgeMessages() public method

public PurgeMessages ( IEnumerable itms ) : Task
itms IEnumerable
return Task

RefreshUnprocessedQueueItemList() public method

public RefreshUnprocessedQueueItemList ( ) : bool
return bool

ResumeMonitoring() public method

public ResumeMonitoring ( ) : void
return void

RetrieveProcessedQueueItems() public method

public RetrieveProcessedQueueItems ( System.TimeSpan timeSpan ) : void
timeSpan System.TimeSpan
return void

SendCommand() public method

public SendCommand ( object>.Dictionary connectionStrings, string destinationQueue, object message ) : void
connectionStrings object>.Dictionary
destinationQueue string
message object
return void

StartMonitoring() public method

public StartMonitoring ( ) : void
return void

StopMonitoring() public method

public StopMonitoring ( ) : void
return void

SwitchServiceBus() public method

public SwitchServiceBus ( string serviceBus, string version, string queueType ) : void
serviceBus string
version string
queueType string
return void

Property Details

MAX_ITEMS_PER_QUEUE public_oe static_oe property

public static int MAX_ITEMS_PER_QUEUE
return int

_finishedLoadingQueues protected_oe property

protected EventHandler _finishedLoadingQueues
return EventHandler

_itemsChanged protected_oe property

protected EventHandler _itemsChanged
return EventHandler

_itemsLock protected_oe property

protected object _itemsLock
return object

_log protected_oe property

protected Logger,System _log
return System.Logger

_startedLoadingQueues protected_oe property

protected EventHandler _startedLoadingQueues
return EventHandler