C# Class DotNetWorkQueue.Transport.PostgreSQL.ConfigurationExtensionsForIAdditionalMessageData

Extension methods for setting specific properties on the additional message data classes
显示文件 Open project: blehnen/DotNetWorkQueue

Public Methods

Method Description
GetDelay ( this data ) : TimeSpan?

Gets the message delay.

GetExpiration ( this data ) : TimeSpan?

Gets the message expiration.

GetPriority ( this data ) : ushort?

Gets the priority.

Defaults to 128. Min value is 0, max value is 255. 0 = highest priority 255 = lowest priority

SetDelay ( this data, System.TimeSpan delay ) : void

Sets the message delay.

SetExpiration ( this data, System.TimeSpan expiration ) : void

Sets the message expiration.

SetPriority ( this data, ushort priority ) : void

Sets the priority.

Defaults to 128. Min value is 0, max value is 255. 0 = highest priority 255 = lowest priority

Method Details

GetDelay() public static method

Gets the message delay.
public static GetDelay ( this data ) : TimeSpan?
data this The data.
return TimeSpan?

GetExpiration() public static method

Gets the message expiration.
public static GetExpiration ( this data ) : TimeSpan?
data this The data.
return TimeSpan?

GetPriority() public static method

Gets the priority.
Defaults to 128. Min value is 0, max value is 255. 0 = highest priority 255 = lowest priority
public static GetPriority ( this data ) : ushort?
data this The data.
return ushort?

SetDelay() public static method

Sets the message delay.
public static SetDelay ( this data, System.TimeSpan delay ) : void
data this The data.
delay System.TimeSpan The delay.
return void

SetExpiration() public static method

Sets the message expiration.
public static SetExpiration ( this data, System.TimeSpan expiration ) : void
data this The data.
expiration System.TimeSpan The expiration.
return void

SetPriority() public static method

Sets the priority.
Defaults to 128. Min value is 0, max value is 255. 0 = highest priority 255 = lowest priority
public static SetPriority ( this data, ushort priority ) : void
data this The data.
priority ushort The priority.
return void