/// <summary> /// Initializes a new instance of the <see cref="StreamTreeNode"/> class. /// </summary> /// <param name="partition">The partition where this stream tree node can be found.</param> public StreamTreeNode(PartitionViewModel partition) { this.Partition = partition; this.Partition.SessionViewModel.DatasetViewModel.PropertyChanged += this.DatasetViewModel_PropertyChanged; this.internalChildren = new ObservableCollection <IStreamTreeNode>(); this.children = new ReadOnlyObservableCollection <IStreamTreeNode>(this.internalChildren); }
/// <summary> /// Initializes a new instance of the <see cref="StreamContainerTreeNode"/> class. /// </summary> /// <param name="partitionViewModel">The partition for the container tree node.</param> /// <param name="path">The path to the container tree node.</param> /// <param name="name">The name of the container tree node.</param> public StreamContainerTreeNode(PartitionViewModel partitionViewModel, string path, string name) { this.PartitionViewModel = partitionViewModel; this.PartitionViewModel.PropertyChanged += this.OnPartitionViewModelPropertyChanged; this.DatasetViewModel.PropertyChanged += this.OnDatasetViewModelPropertyChanged; this.Path = path; this.Name = name; this.internalChildren = new ObservableCollection <StreamContainerTreeNode>(); this.children = new ReadOnlyObservableCollection <StreamContainerTreeNode>(this.internalChildren); }
/// <summary> /// Initializes a new instance of the <see cref="DerivedReceiverDiagnosticsStreamTreeNode{T}"/> class. /// </summary> /// <param name="partitionViewModel">The partition where this stream tree node can be found.</param> /// <param name="path">The path to the stream tree node.</param> /// <param name="name">The name of the stream tree node.</param> /// <param name="sourceStreamMetadata">The source stream metadata.</param> /// <param name="receiverId">The receiver id.</param> /// <param name="memberFunc">A function that given the receiver diagnostics provides the statistic of interest.</param> public DerivedReceiverDiagnosticsStreamTreeNode( PartitionViewModel partitionViewModel, string path, string name, IStreamMetadata sourceStreamMetadata, int receiverId, Func <PipelineDiagnostics.ReceiverDiagnostics, T> memberFunc) : base(partitionViewModel, path, name, sourceStreamMetadata) { this.DataTypeName = typeof(T?).FullName; this.ReceiverId = receiverId; this.memberFunc = memberFunc; }
/// <summary> /// Initializes a new instance of the <see cref="DerivedStreamTreeNode"/> class. /// </summary> /// <param name="partitionViewModel">The partition for the stream tree node.</param> /// <param name="path">The path to the stream tree node.</param> /// <param name="name">The name of the stream tree node.</param> /// <param name="sourceStreamMetadata">The source stream metadata.</param> public DerivedStreamTreeNode(PartitionViewModel partitionViewModel, string path, string name, IStreamMetadata sourceStreamMetadata) : base(partitionViewModel, path, name, sourceStreamMetadata) { }
/// <summary> /// Initializes a new instance of the <see cref="StreamTreeNode"/> class. /// </summary> /// <param name="partitionViewModel">The partition for the stream tree node.</param> /// <param name="path">The path to the stream tree node.</param> /// <param name="name">The name of the stream tree node.</param> /// <param name="streamMetadata">The stream metadata.</param> public StreamTreeNode(PartitionViewModel partitionViewModel, string path, string name, IStreamMetadata streamMetadata) : base(partitionViewModel, path, name) { this.SourceStreamMetadata = streamMetadata; this.DataTypeName = this.SourceStreamMetadata.TypeName; }
/// <summary> /// Initializes a new instance of the <see cref="PipelineDiagnosticsStreamTreeNode"/> class. /// </summary> /// <param name="partitionViewModel">The partition for the stream tree node.</param> /// <param name="path">The path to the stream tree node.</param> /// <param name="name">The name of the stream tree node.</param> /// <param name="streamMetadata">The stream metadata.</param> public PipelineDiagnosticsStreamTreeNode(PartitionViewModel partitionViewModel, string path, string name, IStreamMetadata streamMetadata) : base(partitionViewModel, path, name, streamMetadata) { }
/// <summary> /// Initializes a new instance of the <see cref="DerivedStreamContainerTreeNode"/> class. /// </summary> /// <param name="partitionViewModel">The partition for the container tree node.</param> /// <param name="path">The path to the container tree node.</param> /// <param name="name">The name of the container tree node.</param> public DerivedStreamContainerTreeNode(PartitionViewModel partitionViewModel, string path, string name) : base(partitionViewModel, path, name) { }