C# Class DotNetWorkQueue.Transport.Redis.Basic.Lua.EnqueueExpirationLua

Enqueues a message with expiration
Inheritance: BaseLua
ファイルを表示 Open project: blehnen/DotNetWorkQueue

Public Methods

Method Description
EnqueueExpirationLua ( IRedisConnection connection, RedisNames redisNames ) : System

Initializes a new instance of the EnqueueExpirationLua class.

Execute ( string messageId, byte message, byte headers, byte metaData, long expireTime, bool rpc ) : string

Enqueues a message with an expiration

ExecuteAsync ( string messageId, byte message, byte headers, byte metaData, long expireTime, bool rpc ) : Task

Enqueues a message with an expiration

Private Methods

Method Description
GetParameters ( string messageId, byte message, byte headers, byte metaData, long expireTime, bool rpc ) : object

Gets the parameters.

Method Details

EnqueueExpirationLua() public method

Initializes a new instance of the EnqueueExpirationLua class.
public EnqueueExpirationLua ( IRedisConnection connection, RedisNames redisNames ) : System
connection IRedisConnection The connection.
redisNames RedisNames The redis names.
return System

Execute() public method

Enqueues a message with an expiration
public Execute ( string messageId, byte message, byte headers, byte metaData, long expireTime, bool rpc ) : string
messageId string The message identifier.
message byte The message.
headers byte The headers.
metaData byte The meta data.
expireTime long The expire time.
rpc bool if set to true [RPC].
return string

ExecuteAsync() public method

Enqueues a message with an expiration
public ExecuteAsync ( string messageId, byte message, byte headers, byte metaData, long expireTime, bool rpc ) : Task
messageId string The message identifier.
message byte The message.
headers byte The headers.
metaData byte The meta data.
expireTime long The expire time.
rpc bool if set to true [RPC].
return Task