Ejemplo n.º 1
0
 /// <summary>
 /// Creates a DataTarget from the given reader.
 /// </summary>
 /// <param name="customTarget">The custom data target to use.</param>
 internal DataTarget(CustomDataTarget customTarget)
 {
     _target    = customTarget ?? throw new ArgumentNullException(nameof(customTarget));
     DataReader = _target.DataReader;
 }
Ejemplo n.º 2
0
        public static DataTarget CreateSnapshotAndAttach(int processId)
        {
            var customTarget = new CustomDataTarget(new WindowsProcessDataReader(processId, WindowsProcessDataReaderMode.Snapshot));

            return(new DataTarget(customTarget));
        }