mirror of
https://github.com/ZuneDev/MicrosoftIris.git
synced 2026-07-27 13:13:29 -07:00
Move DataMappingModel and DecompilationResult to own files and into Debug.Data namespace
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
namespace Microsoft.Iris.Debug.Data;
|
||||||
|
|
||||||
|
public class DataMappingModel
|
||||||
|
{
|
||||||
|
public DataMappingModel(string provider, string type, string generatedCode)
|
||||||
|
{
|
||||||
|
Provider = provider;
|
||||||
|
Type = type;
|
||||||
|
GeneratedCode = generatedCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Provider { get; internal set; }
|
||||||
|
public string Type { get; internal set; }
|
||||||
|
public string GeneratedCode { get; internal set; }
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
using System.Xml;
|
||||||
|
|
||||||
|
namespace Microsoft.Iris.Debug.Data;
|
||||||
|
|
||||||
|
public class DecompilationResult
|
||||||
|
{
|
||||||
|
internal DecompilationResult(string context, XmlDocument doc)
|
||||||
|
{
|
||||||
|
Context = context;
|
||||||
|
Doc = doc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Context { get; private set; }
|
||||||
|
public XmlDocument Doc { get; private set; }
|
||||||
|
}
|
||||||
@@ -1,53 +1,20 @@
|
|||||||
using System.Collections.Generic;
|
using Microsoft.Iris.Debug.Data;
|
||||||
using System.Xml;
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
|
||||||
#if NET40_OR_GREATER || NET6_0_OR_GREATER
|
namespace Microsoft.Iris.Debug;
|
||||||
using DataMappingModelsList = System.Collections.ObjectModel.ObservableCollection<Microsoft.Iris.Debug.DataMappingModel>;
|
|
||||||
using DecompileResultList = System.Collections.ObjectModel.ObservableCollection<Microsoft.Iris.Debug.DecompilationResult>;
|
|
||||||
#else
|
|
||||||
using DataMappingModelsList = System.Collections.Generic.List<Microsoft.Iris.Debug.DataMappingModel>;
|
|
||||||
using DecompileResultList = System.Collections.Generic.List<Microsoft.Iris.Debug.DecompilationResult>;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace Microsoft.Iris.Debug
|
public class DebugSettings
|
||||||
{
|
{
|
||||||
public class DebugSettings
|
public bool UseDecompiler { get; set; } = false;
|
||||||
{
|
public ObservableCollection<DecompilationResult> DecompileResults { get; } = new();
|
||||||
public bool UseDecompiler { get; set; } = false;
|
|
||||||
public DecompileResultList DecompileResults { get; } = new DecompileResultList();
|
|
||||||
public TraceSettings TraceSettings { get; } = TraceSettings.Current;
|
|
||||||
|
|
||||||
public bool GenerateDataMappingModels { get; set; } = false;
|
public TraceSettings TraceSettings { get; } = TraceSettings.Current;
|
||||||
public DataMappingModelsList DataMappingModels { get; } = new DataMappingModelsList();
|
|
||||||
|
|
||||||
public List<Breakpoint> Breakpoints { get; } = new();
|
public bool GenerateDataMappingModels { get; set; } = false;
|
||||||
|
public ObservableCollection<DataMappingModel> DataMappingModels { get; } = new();
|
||||||
|
|
||||||
public string DebugConnectionUri { get; set; }
|
public List<Breakpoint> Breakpoints { get; } = new();
|
||||||
}
|
|
||||||
|
|
||||||
public class DecompilationResult
|
public string DebugConnectionUri { get; set; }
|
||||||
{
|
|
||||||
internal DecompilationResult(string context, XmlDocument doc)
|
|
||||||
{
|
|
||||||
Context = context;
|
|
||||||
Doc = doc;
|
|
||||||
}
|
|
||||||
|
|
||||||
public string Context { get; private set; }
|
|
||||||
public XmlDocument Doc { get; private set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class DataMappingModel
|
|
||||||
{
|
|
||||||
public DataMappingModel(string provider, string type, string generatedCode)
|
|
||||||
{
|
|
||||||
Provider = provider;
|
|
||||||
Type = type;
|
|
||||||
GeneratedCode = generatedCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public string Provider { get; internal set; }
|
|
||||||
public string Type { get; internal set; }
|
|
||||||
public string GeneratedCode { get; internal set; }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user