C# Class ServiceBusMQ.MassTransit.MassTransitServiceBusManager

Inheritance: IServiceBusManager, ISendCommand, IViewSubscriptions
Datei anzeigen Open project: danielHalan/ServiceBusMQManager

Protected Properties

Property Type Description
_bus MassTransit.IServiceBus
_itemsChanged EventHandler
_monitorMsmqQueues List

Public Methods

Method Description
DeserializeCommand ( string cmd, Type cmdType ) : object
GetAvailableCommands ( string asmPaths, CommandDefinition cmdDef, bool suppressErrors ) : System.Type[]
GetMessageSubscriptions ( object>.Dictionary connectionSettings, IEnumerable queues ) : MessageSubscription[]
GetProcessedMessages ( QueueType type, System.DateTime since, IEnumerable currentItems ) : QueueFetchResult
GetUnprocessedMessages ( ServiceBusMQ.Model.QueueFetchUnprocessedMessagesRequest req ) : QueueFetchResult
Initialize ( object>.Dictionary connectionSettings, ServiceBusMQ.Model.Queue monitorQueues, SbmqmMonitorState monitorState ) : void
IsIgnoredQueue ( string queueName ) : bool
LoadMessageContent ( ServiceBusMQ.Model.QueueItem itm ) : string
MoveAllErrorMessagesToOriginQueue ( string errorQueue ) : void
MoveErrorMessageToOriginQueue ( ServiceBusMQ.Model.QueueItem itm ) : void
PeekMessages ( object prm ) : void
PurgeAllMessages ( ) : void
PurgeErrorAllMessages ( ) : void
PurgeErrorMessages ( string queueName ) : void
PurgeMessage ( ServiceBusMQ.Model.QueueItem itm ) : void
SendCommand ( object>.Dictionary connectionStrings, string destinationQueue, object message ) : void
SerializeCommand ( object cmd ) : string
SetupServiceBus ( string assemblyPaths, CommandDefinition cmdDef, object>.Dictionary connectionSettings ) : void
Terminate ( ) : void

Protected Methods

Method Description
GetMessageNames ( string content, bool includeNamespace ) : ServiceBusMQ.Model.MessageInfo[]
GetQueueListByType ( QueueType type ) : IEnumerable
GetSubscriptionType ( string xml ) : string
MergeStringArray ( ServiceBusMQ.Model.MessageInfo arr ) : string
OnError ( string message, Exception exception = null, bool fatal = false ) : void
OnItemsChanged ( ) : void
OnWarning ( string message, string content, WarningType type = WarningType.Other ) : void
ReadMessageStream ( Stream s ) : string
StartPeekThreads ( ) : void

Private Methods

Method Description
AddMsmqQueue ( string serverName, ServiceBusMQ.Model.Queue queue ) : void
CreateQueueItem ( ServiceBusMQ.Model.Queue queue, System.Messaging.Message msg ) : ServiceBusMQ.Model.QueueItem
GetAllRootCurlyBrackers ( string content ) : IEnumerable
GetJsonMessageNames ( string content, bool includeNamespace ) : ServiceBusMQ.Model.MessageInfo[]
GetMessageQueue ( ServiceBusMQ.Model.QueueItem itm ) : ServiceBusMQ.MassTransit.MsmqMessageQueue
GetXmlMessageNames ( string content, bool includeNamespace ) : ServiceBusMQ.Model.MessageInfo[]
LoadQueues ( ) : void
ParseClassName ( string asmName ) : string
PrepareQueueItemForAdd ( ServiceBusMQ.Model.QueueItem itm ) : bool
SetupMessageReadPropertyFilters ( System.Messaging.MessageQueue q, QueueType type ) : void
TryAddItem ( System.Messaging.Message msg, ServiceBusMQ.Model.Queue q ) : bool

Method Details

DeserializeCommand() public method

public DeserializeCommand ( string cmd, Type cmdType ) : object
cmd string
cmdType System.Type
return object

GetAvailableCommands() public method

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

GetMessageNames() protected method

protected GetMessageNames ( string content, bool includeNamespace ) : ServiceBusMQ.Model.MessageInfo[]
content string
includeNamespace bool
return ServiceBusMQ.Model.MessageInfo[]

GetMessageSubscriptions() public method

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

GetProcessedMessages() public method

public GetProcessedMessages ( QueueType type, System.DateTime since, IEnumerable currentItems ) : QueueFetchResult
type QueueType
since System.DateTime
currentItems IEnumerable
return ServiceBusMQ.Model.QueueFetchResult

GetQueueListByType() protected method

protected GetQueueListByType ( QueueType type ) : IEnumerable
type QueueType
return IEnumerable

GetSubscriptionType() protected method

protected GetSubscriptionType ( string xml ) : string
xml string
return string

GetUnprocessedMessages() public method

public GetUnprocessedMessages ( ServiceBusMQ.Model.QueueFetchUnprocessedMessagesRequest req ) : QueueFetchResult
req ServiceBusMQ.Model.QueueFetchUnprocessedMessagesRequest
return ServiceBusMQ.Model.QueueFetchResult

Initialize() public method

public Initialize ( object>.Dictionary connectionSettings, ServiceBusMQ.Model.Queue monitorQueues, SbmqmMonitorState monitorState ) : void
connectionSettings object>.Dictionary
monitorQueues ServiceBusMQ.Model.Queue
monitorState SbmqmMonitorState
return void

IsIgnoredQueue() public method

public IsIgnoredQueue ( string queueName ) : bool
queueName string
return bool

LoadMessageContent() public method

public LoadMessageContent ( ServiceBusMQ.Model.QueueItem itm ) : string
itm ServiceBusMQ.Model.QueueItem
return string

MergeStringArray() protected method

protected MergeStringArray ( ServiceBusMQ.Model.MessageInfo arr ) : string
arr ServiceBusMQ.Model.MessageInfo
return string

MoveAllErrorMessagesToOriginQueue() public method

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

MoveErrorMessageToOriginQueue() public method

public MoveErrorMessageToOriginQueue ( ServiceBusMQ.Model.QueueItem itm ) : void
itm ServiceBusMQ.Model.QueueItem
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

OnItemsChanged() protected method

protected OnItemsChanged ( ) : void
return void

OnWarning() protected method

protected OnWarning ( string message, string content, WarningType type = WarningType.Other ) : void
message string
content string
type WarningType
return void

PeekMessages() public method

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

PurgeAllMessages() public method

public PurgeAllMessages ( ) : void
return void

PurgeErrorAllMessages() public method

public PurgeErrorAllMessages ( ) : void
return void

PurgeErrorMessages() public method

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

PurgeMessage() public method

public PurgeMessage ( ServiceBusMQ.Model.QueueItem itm ) : void
itm ServiceBusMQ.Model.QueueItem
return void

ReadMessageStream() protected method

protected ReadMessageStream ( Stream s ) : string
s Stream
return string

SendCommand() public method

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

SerializeCommand() public method

public SerializeCommand ( object cmd ) : string
cmd object
return string

SetupServiceBus() public method

public SetupServiceBus ( string assemblyPaths, CommandDefinition cmdDef, object>.Dictionary connectionSettings ) : void
assemblyPaths string
cmdDef CommandDefinition
connectionSettings object>.Dictionary
return void

StartPeekThreads() protected method

protected StartPeekThreads ( ) : void
return void

Terminate() public method

public Terminate ( ) : void
return void

Property Details

_bus protected_oe property

protected IServiceBus,MassTransit _bus
return MassTransit.IServiceBus

_itemsChanged protected_oe property

protected EventHandler _itemsChanged
return EventHandler

_monitorMsmqQueues protected_oe property

protected List _monitorMsmqQueues
return List