C# Class RabbitMQ.Client.Unit.IntegrationFixture

Mostrar archivo Open project: rabbitmq/rabbitmq-dotnet-client Class Usage Examples

Public Properties

Property Type Description
RECOVERY_INTERVAL System.TimeSpan

Protected Properties

Property Type Description
Conn IConnection
Model IModel
encoding System.Text.Encoding

Public Methods

Method Description
CertificatesDirectory ( ) : string
IsRunningOnMonoOrDotNetCore ( ) : bool

Protected Methods

Method Description
AssertConsumerCount ( IModel m, string q, int count ) : void
AssertConsumerCount ( string q, int count ) : void
AssertMessageCount ( string q, int count ) : void
AssertPreconditionFailed ( ShutdownEventArgs args ) : void
AssertShutdownError ( ShutdownEventArgs args, int code ) : void
Block ( ) : void
CloseAllConnections ( ) : void
CloseConnection ( IConnection conn ) : void
CloseConnection ( string pid ) : void
CreateAutorecoveringConnection ( ) : AutorecoveringConnection
CreateAutorecoveringConnection ( IList endpoints ) : AutorecoveringConnection
CreateAutorecoveringConnection ( IList hostnames ) : AutorecoveringConnection
CreateAutorecoveringConnection ( System.TimeSpan interval ) : AutorecoveringConnection
CreateAutorecoveringConnection ( System.TimeSpan interval, IList hostnames ) : AutorecoveringConnection
CreateAutorecoveringConnectionWithTopologyRecoveryDisabled ( ) : AutorecoveringConnection
CreateNonRecoveringConnection ( ) : IConnection
DeclareNonDurableExchange ( IModel m, string x ) : string
DeclareNonDurableExchangeNoWait ( IModel m, string x ) : string
EnsureNotEmpty ( string q ) : void
EnsureNotEmpty ( string q, string body ) : void
ExecCommand ( string command ) : Process
ExecCommand ( string command, string args ) : Process
ExecCommand ( string ctl, string args, string changeDirTo ) : Process
ExecRabbitMQCtl ( string args ) : Process
GenerateExchangeName ( ) : string
GenerateQueueName ( ) : string
InitiatedByPeerOrLibrary ( ShutdownEventArgs evt ) : bool
ListConnections ( ) : List
Publish ( IConnection conn ) : void
RandomMessageBody ( ) : byte[]
ReleaseResources ( ) : void
ReportExecFailure ( String cmd, String args, String msg ) : void
RestartRabbitMQ ( ) : void
StartRabbitMQ ( ) : void
StopRabbitMQ ( ) : void
Unblock ( ) : void
Wait ( ManualResetEvent latch ) : void
Wait ( ManualResetEvent latch, System.TimeSpan timeSpan ) : void
WaitForConfirms ( IModel m ) : bool
WaitOn ( object o ) : void
WithClosedModel ( Action action ) : void
WithEmptyQueue ( string>.Action action ) : void
WithNonEmptyQueue ( string>.Action action ) : void
WithNonEmptyQueue ( string>.Action action, string msg ) : void
WithTemporaryAutorecoveringConnection ( Action action ) : void
WithTemporaryModel ( Action action ) : void
WithTemporaryModel ( IConnection connection, Action action ) : void
WithTemporaryNonExclusiveQueue ( string>.Action action ) : void
WithTemporaryNonExclusiveQueue ( IModel model, string>.Action action ) : void
WithTemporaryNonExclusiveQueue ( IModel model, string>.Action action, string queue ) : void
WithTemporaryQueue ( string>.Action action ) : void
WithTemporaryQueue ( string>.Action action, string q ) : void
WithTemporaryQueue ( IModel model, string>.Action action ) : void
WithTemporaryQueue ( IModel model, string>.Action action, string queue ) : void
WithTemporaryQueueNoWait ( IModel model, string>.Action action, string queue ) : void

Private Methods

Method Description
Dispose ( ) : void
Init ( ) : void

Method Details

AssertConsumerCount() protected method

protected AssertConsumerCount ( IModel m, string q, int count ) : void
m IModel
q string
count int
return void

AssertConsumerCount() protected method

protected AssertConsumerCount ( string q, int count ) : void
q string
count int
return void

AssertMessageCount() protected method

protected AssertMessageCount ( string q, int count ) : void
q string
count int
return void

AssertPreconditionFailed() protected method

protected AssertPreconditionFailed ( ShutdownEventArgs args ) : void
args ShutdownEventArgs
return void

AssertShutdownError() protected method

protected AssertShutdownError ( ShutdownEventArgs args, int code ) : void
args ShutdownEventArgs
code int
return void

Block() protected method

protected Block ( ) : void
return void

CertificatesDirectory() public static method

public static CertificatesDirectory ( ) : string
return string

CloseAllConnections() protected method

protected CloseAllConnections ( ) : void
return void

CloseConnection() protected method

protected CloseConnection ( IConnection conn ) : void
conn IConnection
return void

CloseConnection() protected method

protected CloseConnection ( string pid ) : void
pid string
return void

CreateAutorecoveringConnection() protected method

protected CreateAutorecoveringConnection ( ) : AutorecoveringConnection
return RabbitMQ.Client.Framing.Impl.AutorecoveringConnection

CreateAutorecoveringConnection() protected method

protected CreateAutorecoveringConnection ( IList endpoints ) : AutorecoveringConnection
endpoints IList
return RabbitMQ.Client.Framing.Impl.AutorecoveringConnection

CreateAutorecoveringConnection() protected method

protected CreateAutorecoveringConnection ( IList hostnames ) : AutorecoveringConnection
hostnames IList
return RabbitMQ.Client.Framing.Impl.AutorecoveringConnection

CreateAutorecoveringConnection() protected method

protected CreateAutorecoveringConnection ( System.TimeSpan interval ) : AutorecoveringConnection
interval System.TimeSpan
return RabbitMQ.Client.Framing.Impl.AutorecoveringConnection

CreateAutorecoveringConnection() protected method

protected CreateAutorecoveringConnection ( System.TimeSpan interval, IList hostnames ) : AutorecoveringConnection
interval System.TimeSpan
hostnames IList
return RabbitMQ.Client.Framing.Impl.AutorecoveringConnection

CreateAutorecoveringConnectionWithTopologyRecoveryDisabled() protected method

protected CreateAutorecoveringConnectionWithTopologyRecoveryDisabled ( ) : AutorecoveringConnection
return RabbitMQ.Client.Framing.Impl.AutorecoveringConnection

CreateNonRecoveringConnection() protected method

protected CreateNonRecoveringConnection ( ) : IConnection
return IConnection

DeclareNonDurableExchange() protected method

protected DeclareNonDurableExchange ( IModel m, string x ) : string
m IModel
x string
return string

DeclareNonDurableExchangeNoWait() protected method

protected DeclareNonDurableExchangeNoWait ( IModel m, string x ) : string
m IModel
x string
return string

EnsureNotEmpty() protected method

protected EnsureNotEmpty ( string q ) : void
q string
return void

EnsureNotEmpty() protected method

protected EnsureNotEmpty ( string q, string body ) : void
q string
body string
return void

ExecCommand() protected method

protected ExecCommand ( string command ) : Process
command string
return System.Diagnostics.Process

ExecCommand() protected method

protected ExecCommand ( string command, string args ) : Process
command string
args string
return System.Diagnostics.Process

ExecCommand() protected method

protected ExecCommand ( string ctl, string args, string changeDirTo ) : Process
ctl string
args string
changeDirTo string
return System.Diagnostics.Process

ExecRabbitMQCtl() protected method

protected ExecRabbitMQCtl ( string args ) : Process
args string
return System.Diagnostics.Process

GenerateExchangeName() protected method

protected GenerateExchangeName ( ) : string
return string

GenerateQueueName() protected method

protected GenerateQueueName ( ) : string
return string

InitiatedByPeerOrLibrary() protected method

protected InitiatedByPeerOrLibrary ( ShutdownEventArgs evt ) : bool
evt ShutdownEventArgs
return bool

IsRunningOnMonoOrDotNetCore() public static method

public static IsRunningOnMonoOrDotNetCore ( ) : bool
return bool

ListConnections() protected method

protected ListConnections ( ) : List
return List

Publish() protected method

protected Publish ( IConnection conn ) : void
conn IConnection
return void

RandomMessageBody() protected method

protected RandomMessageBody ( ) : byte[]
return byte[]

ReleaseResources() protected method

protected ReleaseResources ( ) : void
return void

ReportExecFailure() protected method

protected ReportExecFailure ( String cmd, String args, String msg ) : void
cmd String
args String
msg String
return void

RestartRabbitMQ() protected method

protected RestartRabbitMQ ( ) : void
return void

StartRabbitMQ() protected method

protected StartRabbitMQ ( ) : void
return void

StopRabbitMQ() protected method

protected StopRabbitMQ ( ) : void
return void

Unblock() protected method

protected Unblock ( ) : void
return void

Wait() protected method

protected Wait ( ManualResetEvent latch ) : void
latch System.Threading.ManualResetEvent
return void

Wait() protected method

protected Wait ( ManualResetEvent latch, System.TimeSpan timeSpan ) : void
latch System.Threading.ManualResetEvent
timeSpan System.TimeSpan
return void

WaitForConfirms() protected method

protected WaitForConfirms ( IModel m ) : bool
m IModel
return bool

WaitOn() protected method

protected WaitOn ( object o ) : void
o object
return void

WithClosedModel() protected method

protected WithClosedModel ( Action action ) : void
action Action
return void

WithEmptyQueue() protected method

protected WithEmptyQueue ( string>.Action action ) : void
action string>.Action
return void

WithNonEmptyQueue() protected method

protected WithNonEmptyQueue ( string>.Action action ) : void
action string>.Action
return void

WithNonEmptyQueue() protected method

protected WithNonEmptyQueue ( string>.Action action, string msg ) : void
action string>.Action
msg string
return void

WithTemporaryAutorecoveringConnection() protected method

protected WithTemporaryAutorecoveringConnection ( Action action ) : void
action Action
return void

WithTemporaryModel() protected method

protected WithTemporaryModel ( Action action ) : void
action Action
return void

WithTemporaryModel() protected method

protected WithTemporaryModel ( IConnection connection, Action action ) : void
connection IConnection
action Action
return void

WithTemporaryNonExclusiveQueue() protected method

protected WithTemporaryNonExclusiveQueue ( string>.Action action ) : void
action string>.Action
return void

WithTemporaryNonExclusiveQueue() protected method

protected WithTemporaryNonExclusiveQueue ( IModel model, string>.Action action ) : void
model IModel
action string>.Action
return void

WithTemporaryNonExclusiveQueue() protected method

protected WithTemporaryNonExclusiveQueue ( IModel model, string>.Action action, string queue ) : void
model IModel
action string>.Action
queue string
return void

WithTemporaryQueue() protected method

protected WithTemporaryQueue ( string>.Action action ) : void
action string>.Action
return void

WithTemporaryQueue() protected method

protected WithTemporaryQueue ( string>.Action action, string q ) : void
action string>.Action
q string
return void

WithTemporaryQueue() protected method

protected WithTemporaryQueue ( IModel model, string>.Action action ) : void
model IModel
action string>.Action
return void

WithTemporaryQueue() protected method

protected WithTemporaryQueue ( IModel model, string>.Action action, string queue ) : void
model IModel
action string>.Action
queue string
return void

WithTemporaryQueueNoWait() protected method

protected WithTemporaryQueueNoWait ( IModel model, string>.Action action, string queue ) : void
model IModel
action string>.Action
queue string
return void

Property Details

Conn protected_oe property

protected IConnection Conn
return IConnection

Model protected_oe property

protected IModel Model
return IModel

RECOVERY_INTERVAL public_oe static_oe property

public static TimeSpan,System RECOVERY_INTERVAL
return System.TimeSpan

encoding protected_oe property

protected Encoding,System.Text encoding
return System.Text.Encoding