public SagaWindowViewModel(IEventAggregator eventAggregator, IServiceControl serviceControl, IClipboard clipboard) { this.eventAggregator = eventAggregator; this.serviceControl = serviceControl; ShowSagaNotFoundWarning = false; CopyCommand = this.CreateCommand(arg => clipboard.CopyTo(arg.ToString())); }
/// <summary> /// copy the report to the clipboard, using the clipboard implementation supplied /// </summary> public void CopyReportToClipboard() { ExceptionReport exceptionReport = CreateExceptionReport(); _clipboard.CopyTo(exceptionReport.ToString()); _view.ProgressMessage = string.Format("{0} copied to clipboard", ReportInfo.TitleText); }
public SagaWindowViewModel(IEventAggregator eventAggregator, IServiceControl serviceControl, IClipboard clipboard, MessageSelectionContext selectionContext) { this.eventAggregator = eventAggregator; this.serviceControl = serviceControl; selection = selectionContext; ShowSagaNotFoundWarning = false; CopyCommand = this.CreateCommand(arg => clipboard.CopyTo(InstallScriptText)); }
public virtual void CopyMessageXml() { var content = _stringDecoder.Decode(SelectedMessage.BodyRaw); if (content.IsParsed) { _clipboard.CopyTo(content.Value); } }
public void CopyMessageXml() { var content = GetMessageBody(); if (!content.IsEmpty()) { _clipboard.CopyTo(content); } }
public override void Execute(object parameter) { var message = parameter as StoredMessage; if (message == null) { return; } clipboard.CopyTo(message.ConversationId); }
public override void Execute(object parameter) { var message = parameter as StoredMessage; if (message == null) { return; } clipboard.CopyTo(serviceControl.CreateServiceInsightUri(message).ToString()); }
public virtual void CopyHeaderInfo() { var serializer = new XmlSerializer(typeof(HeaderInfo[])); using (var stream = new MemoryStream()) { var headers = new List <HeaderInfo>(Items); serializer.Serialize(stream, headers.ToArray()); var content = stream.ReadString(); _clipboard.CopyTo(content); } }
public SagaWindowViewModel( IEventAggregator eventAggregator, IWorkNotifier workNotifier, IServiceControl serviceControl, IClipboard clipboard, IWindowManagerEx windowManager, MessageSelectionContext selectionContext) { this.eventAggregator = eventAggregator; this.workNotifier = workNotifier; this.serviceControl = serviceControl; this.windowManager = windowManager; selection = selectionContext; ShowSagaNotFoundWarning = false; CopyCommand = Command.Create(arg => clipboard.CopyTo(InstallScriptText)); ShowEntireContentCommand = Command.Create(arg => ShowEntireContent((SagaUpdatedValue)arg)); }
public void CopyPropertyValue(object value) { _clipboard.CopyTo(value.ToString()); }
void Copy() { clipboard.CopyTo(Logs.Aggregate("", (s, l) => s + l.Log)); }
public void CopyHeaders() { clipboard.CopyTo(generalHeaderDisplay.HeaderContent); }
public void CopyMessageId() { _clipboard.CopyTo(_serviceControl.GetUri(FocusedRow).ToString()); }
public void CopyConversationId(StoredMessage message) { _clipboard.CopyTo(message.ConversationId); }
public virtual void CopyMessageId() { var msg = FocusedMessage; _clipboard.CopyTo(msg.Id); }