/// <summary>
 /// Handles command end execution.
 /// Publishes a CommandDurationMessage.
 /// </summary>
 /// <param name="recordsAffected">The number of records affected.</param>
 /// <param name="name">The method name.</param>
 private void LogCommandEnd(int?recordsAffected, string name)
 {
     _messagePublisher.EmitStopMessage(
         new CommandDurationMessage(
             _command.ConnectionId,
             _command.CommandId,
             recordsAffected).AsTimelineMessage("Command: Executed", AdomdTimelineCategory.Command, name));
 }
Example #2
0
 /// <inheritdoc />
 public void Commit()
 {
     _innerTransaction.Commit();
     _isComplete = true;
     _messagePublisher.EmitStopMessage(
         new TransactionCommitMessage(
             _connectionId,
             TransactionId));
 }
 /// <inheritdoc />
 public void Close()
 {
     _messagePublisher.EmitStopMessage(new ConnectionClosedMessage(_connectionId).AsTimelineMessage("Connection: Opened", AdomdTimelineCategory.Connection));
     _innerConnection.Close();
 }