BuildStatusCommand() private method

private BuildStatusCommand ( NpgsqlCommand command, TableNameHelper tableNameHelper, IHeaders headers, IAdditionalMessageData data, IMessage message, long id, PostgreSqlMessageQueueTransportOptions options ) : void
command Npgsql.NpgsqlCommand
tableNameHelper TableNameHelper
headers IHeaders
data IAdditionalMessageData
message IMessage
id long
options PostgreSqlMessageQueueTransportOptions
return void
Ejemplo n.º 1
0
 /// <summary>
 /// Creates the status record.
 /// </summary>
 /// <param name="connection">The connection.</param>
 /// <param name="id">The identifier.</param>
 /// <param name="message">The message.</param>
 /// <param name="data">The data.</param>
 /// <param name="trans">The transaction.</param>
 /// <returns></returns>
 private async Task CreateStatusRecordAsync(NpgsqlConnection connection, long id, IMessage message,
                                            IAdditionalMessageData data, NpgsqlTransaction trans)
 {
     using (var command = connection.CreateCommand())
     {
         SendMessage.BuildStatusCommand(command, _tableNameHelper, _headers, data, message, id, _options.Value);
         command.Transaction = trans;
         await command.ExecuteNonQueryAsync().ConfigureAwait(false);
     }
 }
 /// <summary>
 /// Creates the status record.
 /// </summary>
 /// <param name="connection">The connection.</param>
 /// <param name="id">The identifier.</param>
 /// <param name="message">The message.</param>
 /// <param name="data">The data.</param>
 /// <param name="trans">The transaction.</param>
 private void CreateStatusRecord(NpgsqlConnection connection, long id, IMessage message,
                                 IAdditionalMessageData data, NpgsqlTransaction trans)
 {
     using (var command = connection.CreateCommand())
     {
         SendMessage.BuildStatusCommand(command, _tableNameHelper, _headers, data, message, id, _options.Value);
         command.Transaction = trans;
         command.ExecuteNonQuery();
     }
 }