public override void GetData(object target, Stream outgoingData) { var session = (ISessionSchemaProvider)target; var schema = session.GetSchema(); var dgmlWriter = new DgmlWriter(schema); var contents = dgmlWriter.GetContents(); base.GetData(contents, outgoingData); }
protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider) { var snapshot = (SessionSnapshot) objectProvider.GetObject(); var dgmlWriter = new DgmlWriter(snapshot); string fileName = Path.Combine(Path.GetTempPath(), "session.dgml"); using (var xmlWriter = XmlWriter.Create(fileName)) { dgmlWriter.WriteTo(xmlWriter); } Process.Start(fileName); }
protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider) { var snapshot = (SessionSnapshot)objectProvider.GetObject(); var dgmlWriter = new DgmlWriter(snapshot); string fileName = Path.Combine(Path.GetTempPath(), "session.dgml"); using (var xmlWriter = XmlWriter.Create(fileName)) { dgmlWriter.WriteTo(xmlWriter); } Process.Start(fileName); }