C# Class SqlServerRpcProducer.Commands.SendMessage

Inheritance: ConsoleSharedCommands.Commands.SharedCommands
显示文件 Open project: blehnen/DotNetWorkQueue

Public Methods

Method Description
CreateQueue ( string queueNameReceive, string queueNameSend, int type ) : ConsoleExecuteResult
Example ( string command ) : ConsoleExecuteResult
Help ( ) : ConsoleExecuteResult
Send ( string queueReceive, string queueNameSend, int itemCount, System.TimeSpan rpcTimeout = null, int runtime = 100, System.TimeSpan delay = null, System.TimeSpan expiration = null, ushort priority = null ) : ConsoleExecuteResult
SendAsync ( string queueReceive, string queueNameSend, int itemCount, System.TimeSpan rpcTimeout = null, int runtime = 100, System.TimeSpan delay = null, System.TimeSpan expiration = null, ushort priority = null ) : Task
SendMessage ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void
ValidateQueue ( string queueName ) : ConsoleExecuteResult

Private Methods

Method Description
CreateContainer ( ) : QueueContainer
CreateMessages ( int itemCount, int runTime ) : IEnumerable
CreateModuleIfNeeded ( string queueNameReceive, string queueNameResponse, ConsumerQueueTypes type ) : void
GenerateMessages ( List jobs, System.TimeSpan delay = null, System.TimeSpan expiration = null, ushort priority = null ) : IAdditionalMessageData>>.List
RegisterService ( IContainer container ) : void

Method Details

CreateQueue() public method

public CreateQueue ( string queueNameReceive, string queueNameSend, int type ) : ConsoleExecuteResult
queueNameReceive string
queueNameSend string
type int
return ConsoleShared.ConsoleExecuteResult

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Example() public method

public Example ( string command ) : ConsoleExecuteResult
command string
return ConsoleShared.ConsoleExecuteResult

Help() public method

public Help ( ) : ConsoleExecuteResult
return ConsoleShared.ConsoleExecuteResult

Send() public method

public Send ( string queueReceive, string queueNameSend, int itemCount, System.TimeSpan rpcTimeout = null, int runtime = 100, System.TimeSpan delay = null, System.TimeSpan expiration = null, ushort priority = null ) : ConsoleExecuteResult
queueReceive string
queueNameSend string
itemCount int
rpcTimeout System.TimeSpan
runtime int
delay System.TimeSpan
expiration System.TimeSpan
priority ushort
return ConsoleShared.ConsoleExecuteResult

SendAsync() public method

public SendAsync ( string queueReceive, string queueNameSend, int itemCount, System.TimeSpan rpcTimeout = null, int runtime = 100, System.TimeSpan delay = null, System.TimeSpan expiration = null, ushort priority = null ) : Task
queueReceive string
queueNameSend string
itemCount int
rpcTimeout System.TimeSpan
runtime int
delay System.TimeSpan
expiration System.TimeSpan
priority ushort
return Task

SendMessage() public method

public SendMessage ( ) : System
return System

ValidateQueue() protected method

protected ValidateQueue ( string queueName ) : ConsoleExecuteResult
queueName string
return ConsoleShared.ConsoleExecuteResult