Files
MicrosoftIris/UIX/Microsoft/Iris/Debug/DebugSettings.cs
T

60 lines
2.0 KiB
C#

using System.Collections.Generic;
using System.Xml;
#if NET40_OR_GREATER || NET6_0_OR_GREATER
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 bool UseDecompiler { get; set; } = false;
public bool OpenDebugPipe { get; set; } = false;
public DecompileResultList DecompileResults { get; } = new DecompileResultList();
public TraceSettings TraceSettings { get; } = TraceSettings.Current;
public bool GenerateDataMappingModels { get; set; } = false;
public DataMappingModelsList DataMappingModels { get; } = new DataMappingModelsList();
public List<string> Breakpoints { get; } = new List<string>();
public Bridge Bridge { get; } =
#if OPENZUNE
new(OwlCore.Remoting.RemotingMode.None);
#else
new();
#endif
}
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; }
}
public class DataMappingModel
{
internal 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; }
}
}