TransactionalNodeService.Common.TransactionOperations.SessionFinalisation.CreateCompleteSessionCommand C# (CSharp) Method

CreateCompleteSessionCommand() protected method

protected CreateCompleteSessionCommand ( SqlConnection connection ) : SqlCommand
connection System.Data.SqlClient.SqlConnection
return System.Data.SqlClient.SqlCommand
        protected SqlCommand CreateCompleteSessionCommand(SqlConnection connection)
        {
            SqlCommand createCompleteSessionCommand = new SqlCommand();
            createCompleteSessionCommand.CommandText = InsertSessionTransactionSqlQuery;
            createCompleteSessionCommand.Connection = connection;

            createCompleteSessionCommand.Parameters.AddWithValue("@User", User);
            createCompleteSessionCommand.Parameters.AddWithValue("@TransactionTimestamp", DateTime.Now.ToUniversalTime());
            createCompleteSessionCommand.Parameters.AddWithValue("@SessionUid", SessionId);

            return createCompleteSessionCommand;
        }
    }