Beispiel #1
0
        protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
        {
            var bus = (ServiceBus)objectProvider.GetObject();

            using (var displayForm = new ServiceBusForm())
            {
                displayForm.Text = "hi";

                var sb = new StringBuilder();
                sb.AppendLine(string.Format("Listening On: {0}", bus.Endpoint));


                sb.AppendLine("Outbound Pipeline:");
                PipelineViewer.Trace(bus.OutboundPipeline);

                sb.AppendLine("Inbound Pipeline:");
                PipelineViewer.Trace(bus.InboundPipeline);

                displayForm.SetContent(sb.ToString());
                windowService.ShowDialog(displayForm);
            }
        }
		protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
		{
			var bus = (ServiceBus) objectProvider.GetObject();

			using (var displayForm = new ServiceBusForm())
			{
				displayForm.Text = "hi";

				var sb = new StringBuilder();
				sb.AppendLine(string.Format("Listening On: {0}", bus.Endpoint));


				sb.AppendLine("Outbound Pipeline:");
				PipelineViewer.Trace(bus.OutboundPipeline);

				sb.AppendLine("Inbound Pipeline:");
				PipelineViewer.Trace(bus.InboundPipeline);

				displayForm.SetContent(sb.ToString());
				windowService.ShowDialog(displayForm);
			}
		}