C# Class ServiceBusMQ.MassTransit.MassTransitServiceBusManager

Inheritance: IServiceBusManager, ISendCommand, IViewSubscriptions
Afficher le fichier Open project: danielHalan/ServiceBusMQManager

Protected Properties

Свойство Type Description
_bus MassTransit.IServiceBus
_itemsChanged EventHandler
_monitorMsmqQueues List

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

public DeserializeCommand ( string cmd, Type cmdType ) : object
cmd string
cmdType System.Type
Résultat object

GetAvailableCommands() public méthode

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

GetMessageNames() protected méthode

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

GetMessageSubscriptions() public méthode

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

GetProcessedMessages() public méthode

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

GetQueueListByType() protected méthode

protected GetQueueListByType ( QueueType type ) : IEnumerable
type QueueType
Résultat IEnumerable

GetSubscriptionType() protected méthode

protected GetSubscriptionType ( string xml ) : string
xml string
Résultat string

GetUnprocessedMessages() public méthode

public GetUnprocessedMessages ( ServiceBusMQ.Model.QueueFetchUnprocessedMessagesRequest req ) : QueueFetchResult
req ServiceBusMQ.Model.QueueFetchUnprocessedMessagesRequest
Résultat ServiceBusMQ.Model.QueueFetchResult

Initialize() public méthode

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

IsIgnoredQueue() public méthode

public IsIgnoredQueue ( string queueName ) : bool
queueName string
Résultat bool

LoadMessageContent() public méthode

public LoadMessageContent ( ServiceBusMQ.Model.QueueItem itm ) : string
itm ServiceBusMQ.Model.QueueItem
Résultat string

MergeStringArray() protected méthode

protected MergeStringArray ( ServiceBusMQ.Model.MessageInfo arr ) : string
arr ServiceBusMQ.Model.MessageInfo
Résultat string

MoveAllErrorMessagesToOriginQueue() public méthode

public MoveAllErrorMessagesToOriginQueue ( string errorQueue ) : void
errorQueue string
Résultat void

MoveErrorMessageToOriginQueue() public méthode

public MoveErrorMessageToOriginQueue ( ServiceBusMQ.Model.QueueItem itm ) : void
itm ServiceBusMQ.Model.QueueItem
Résultat void

OnError() protected méthode

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

OnItemsChanged() protected méthode

protected OnItemsChanged ( ) : void
Résultat void

OnWarning() protected méthode

protected OnWarning ( string message, string content, WarningType type = WarningType.Other ) : void
message string
content string
type WarningType
Résultat void

PeekMessages() public méthode

public PeekMessages ( object prm ) : void
prm object
Résultat void

PurgeAllMessages() public méthode

public PurgeAllMessages ( ) : void
Résultat void

PurgeErrorAllMessages() public méthode

public PurgeErrorAllMessages ( ) : void
Résultat void

PurgeErrorMessages() public méthode

public PurgeErrorMessages ( string queueName ) : void
queueName string
Résultat void

PurgeMessage() public méthode

public PurgeMessage ( ServiceBusMQ.Model.QueueItem itm ) : void
itm ServiceBusMQ.Model.QueueItem
Résultat void

ReadMessageStream() protected méthode

protected ReadMessageStream ( Stream s ) : string
s Stream
Résultat string

SendCommand() public méthode

public SendCommand ( object>.Dictionary connectionStrings, string destinationQueue, object message ) : void
connectionStrings object>.Dictionary
destinationQueue string
message object
Résultat void

SerializeCommand() public méthode

public SerializeCommand ( object cmd ) : string
cmd object
Résultat string

SetupServiceBus() public méthode

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

StartPeekThreads() protected méthode

protected StartPeekThreads ( ) : void
Résultat void

Terminate() public méthode

public Terminate ( ) : void
Résultat void

Property Details

_bus protected_oe property

protected IServiceBus,MassTransit _bus
Résultat MassTransit.IServiceBus

_itemsChanged protected_oe property

protected EventHandler _itemsChanged
Résultat EventHandler

_monitorMsmqQueues protected_oe property

protected List _monitorMsmqQueues
Résultat List