DotNetWorkQueue.Transport.PostgreSQL.Basic.PostgreSqlMessageQueueTransportOptions.AddBuiltInColumnValues C# (CSharp) Method

AddBuiltInColumnValues() private method

Adds the built in column values.
private AddBuiltInColumnValues ( System.TimeSpan delay, System.TimeSpan expiration, System.DateTime currentDateTime, StringBuilder command ) : void
delay System.TimeSpan The delay.
expiration System.TimeSpan The expiration.
currentDateTime System.DateTime The current date time.
command StringBuilder The command.
return void
        internal void AddBuiltInColumnValues(TimeSpan? delay, TimeSpan expiration, DateTime currentDateTime, StringBuilder command)
        {
            if (EnableDelayedProcessing)
            {
                if (delay.HasValue && delay != TimeSpan.Zero)
                {
                    command.Append($", {currentDateTime.Add(delay.Value).Ticks} ");
                }
                else
                {
                    command.Append($", {currentDateTime.Ticks}");
                }
            }

            if (EnablePriority)
            {
                command.Append(", @Priority ");
            }

            if (EnableRoute)
            {
                command.Append(", @Route ");
            }

            if (EnableStatus)
            {
                command.Append(", @Status ");
            }

            if (EnableMessageExpiration || QueueType == QueueTypes.RpcReceive || QueueType == QueueTypes.RpcSend)
            {
                command.Append(expiration != TimeSpan.Zero ? $", {currentDateTime.Add(expiration).Ticks} " : ", NULL ");
            }

        }
        /// <summary>