C# Class PostgreSQL.Producer.Commands.SendMessage

Inheritance: ConsoleSharedCommands.Commands.SharedSendCommands
Mostra file Open project: blehnen/DotNetWorkQueue

Public Methods

Method Description
CreateQueue ( string queueName, int type ) : ConsoleExecuteResult
Example ( string command ) : ConsoleExecuteResult
Help ( ) : ConsoleExecuteResult
Send ( string queueName, int itemCount, int runtime = 100, bool batched = false, System.TimeSpan delay = null, System.TimeSpan expiration = null, ushort priority = null ) : ConsoleExecuteResult
SendAsync ( string queueName, int itemCount, int runtime = 100, bool batched = false, 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 queueName, 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 queueName, int type ) : ConsoleExecuteResult
queueName 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 queueName, int itemCount, int runtime = 100, bool batched = false, System.TimeSpan delay = null, System.TimeSpan expiration = null, ushort priority = null ) : ConsoleExecuteResult
queueName string
itemCount int
runtime int
batched bool
delay System.TimeSpan
expiration System.TimeSpan
priority ushort
return ConsoleShared.ConsoleExecuteResult

SendAsync() public method

public SendAsync ( string queueName, int itemCount, int runtime = 100, bool batched = false, System.TimeSpan delay = null, System.TimeSpan expiration = null, ushort priority = null ) : Task
queueName string
itemCount int
runtime int
batched bool
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