Пример #1
0
        public void CommandExecute(ProxyDbCommand command, TimeSpan duration, ExecuteMethod method, List<QueryExecutionPlan> executionPlan, object result)
        {
            if (!IsAvailable()) return;

            var commandMessage = new CommandMessage(command.CommandText, duration, method.ToString(), command.ProxyDbConnection.Context) { QueryExecutionPlans = executionPlan };

            GetChannel().CommandExecute(commandMessage);
        }
Пример #2
0
 public void CommandExecute(ProxyDbCommand command, TimeSpan duration, ExecuteMethod method, List<QueryExecutionPlan> executionPlan, object result)
 {
     var commandMessage = new Van.Parys.Data.Common.CommandMessage(command.CommandText, duration, method.ToString(), command.ProxyDbConnection.Guid) {QueryExecutionPlans = executionPlan, NonReaderResult = result};
     Debug.WriteLine(commandMessage.ToString());
 }