C# Class ServiceBusMQ.Adapter.Azure.ServiceBus22.Azure_ServiceBus_Manager

Inheritance: IServiceBusManager
Show file Open project: danielHalan/ServiceBusMQManager

Protected Properties

Property Type Description
EMPTY_LIST List
_commandDef CommandDefinition
_connectionSettings object>.Dictionary
_itemsChanged EventHandler
_monitorQueues List
_monitorState SbmqmMonitorState

Private Properties

Property Type Description
AddAzureQueue void
CreateQueueItem ServiceBusMQ.Model.QueueItem
GetAllRootCurlyBrackers IEnumerable
GetJsonMessageNames ServiceBusMQ.Model.MessageInfo[]
GetMessageQueue AzureMessageQueue
GetXmlMessageNames ServiceBusMQ.Model.MessageInfo[]
LoadQueues void
PrepareQueueItemForAdd bool

Public Methods

Method Description
DeserializeCommand ( string cmd, Type cmdType ) : object
GetMessageSubscriptions ( object>.Dictionary connectionSettings, IEnumerable queues ) : MessageSubscription[]
GetProcessedMessages ( Model type, System.DateTime since, IEnumerable currentItems ) : QueueFetchResult
GetUnprocessedMessages ( ServiceBusMQ.Model.QueueFetchUnprocessedMessagesRequest req ) : Model.QueueFetchResult
Initialize ( object>.Dictionary connectionSettings, ServiceBusMQ.Model.Queue monitorQueues, SbmqmMonitorState monitorState ) : void
LoadMessageContent ( Model itm ) : string
MoveAllErrorMessagesToOriginQueue ( string errorQueue ) : void
MoveErrorMessageToOriginQueue ( ServiceBusMQ.Model.QueueItem itm ) : void
PurgeAllMessages ( ) : void
PurgeErrorAllMessages ( ) : void
PurgeErrorMessages ( string queueName ) : void
PurgeMessage ( Model itm ) : void
SerializeCommand ( object cmd ) : string
Terminate ( ) : void

Protected Methods

Method Description
ExtractEnclosedMessageTypeNames ( string content, bool includeNamespace = false ) : ServiceBusMQ.Model.MessageInfo[]
GetMessageNames ( string content, bool includeNamespace ) : ServiceBusMQ.Model.MessageInfo[]
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

Private Methods

Method Description
AddAzureQueue ( string connectionStr, Model queue, bool deadLetterQueue = false ) : void
CreateQueueItem ( ServiceBusMQ.Model.Queue queue, BrokeredMessage msg ) : ServiceBusMQ.Model.QueueItem
GetAllRootCurlyBrackers ( string content ) : IEnumerable
GetJsonMessageNames ( string content, bool includeNamespace ) : ServiceBusMQ.Model.MessageInfo[]
GetMessageQueue ( ServiceBusMQ.Model.QueueItem itm ) : AzureMessageQueue
GetXmlMessageNames ( string content, bool includeNamespace ) : ServiceBusMQ.Model.MessageInfo[]
LoadQueues ( ) : void
PrepareQueueItemForAdd ( ServiceBusMQ.Model.QueueItem itm ) : bool

Called when we know that we actually shall add the item, and here we can execute processes that takes extra time

Method Details

DeserializeCommand() public method

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

ExtractEnclosedMessageTypeNames() protected method

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

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 ( Model type, System.DateTime since, IEnumerable currentItems ) : QueueFetchResult
type Model
since System.DateTime
currentItems IEnumerable
return ServiceBusMQ.Model.QueueFetchResult

GetUnprocessedMessages() public method

public GetUnprocessedMessages ( ServiceBusMQ.Model.QueueFetchUnprocessedMessagesRequest req ) : Model.QueueFetchResult
req ServiceBusMQ.Model.QueueFetchUnprocessedMessagesRequest
return 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

LoadMessageContent() public method

public LoadMessageContent ( Model itm ) : string
itm Model
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

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 ( Model itm ) : void
itm Model
return void

ReadMessageStream() protected method

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

SerializeCommand() public method

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

Terminate() public method

public Terminate ( ) : void
return void

Property Details

EMPTY_LIST protected property

protected List EMPTY_LIST
return List

_commandDef protected property

protected CommandDefinition _commandDef
return CommandDefinition

_connectionSettings protected property

protected Dictionary _connectionSettings
return object>.Dictionary

_itemsChanged protected property

protected EventHandler _itemsChanged
return EventHandler

_monitorQueues protected property

protected List _monitorQueues
return List

_monitorState protected property

protected SbmqmMonitorState _monitorState
return SbmqmMonitorState