protected virtual void OnExecute() { using (Traffic.AcquireLock()) { Traffic.Clear(); } ErrorText = String.Empty; if (CurrentCommand != null) { var commandDocument = CurrentCommand.GetCommand(); EventAggregatorContext.Current.GetEvent <SendDataEvent>().Publish(new SendDataEventArgs(commandDocument.ToString(), this, CurrentCommand.Cookie)); } }