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

57 lines
1.9 KiB
C#
Raw Normal View History

2022-06-24 20:41:00 -05:00
using System.Xml;
2022-06-06 23:10:30 -05:00
2022-06-12 23:26:39 -05:00
#if NET40_OR_GREATER || NET6_0_OR_GREATER
using DataMappingModelsList = System.Collections.ObjectModel.ObservableCollection<Microsoft.Iris.Debug.DataMappingModel>;
2022-06-24 20:41:00 -05:00
using DecompileResultList = System.Collections.ObjectModel.ObservableCollection<Microsoft.Iris.Debug.DecompilationResult>;
2022-06-12 23:26:39 -05:00
#else
using DataMappingModelsList = System.Collections.Generic.List<Microsoft.Iris.Debug.DataMappingModel>;
2022-06-24 20:41:00 -05:00
using DecompileResultList = System.Collections.Generic.List<Microsoft.Iris.Debug.DecompilationResult>;
2022-06-12 23:26:39 -05:00
#endif
2022-06-06 23:10:30 -05:00
namespace Microsoft.Iris.Debug
{
public class DebugSettings
{
public bool UseDecompiler { get; set; } = false;
public bool OpenDebugPipe { get; set; } = false;
2022-06-24 20:41:00 -05:00
public DecompileResultList DecompileResults { get; } = new DecompileResultList();
2022-06-06 23:10:30 -05:00
public TraceSettings TraceSettings { get; } = TraceSettings.Current;
2022-06-07 14:30:29 -05:00
public bool GenerateDataMappingModels { get; set; } = false;
2022-06-12 23:26:39 -05:00
public DataMappingModelsList DataMappingModels { get; } = new DataMappingModelsList();
2022-06-12 21:21:29 -05:00
2022-06-07 14:30:29 -05:00
public Bridge Bridge { get; } =
2022-06-09 19:04:59 -05:00
#if OPENZUNE
2022-07-05 12:00:18 -05:00
new(OwlCore.Remoting.RemotingMode.None);
2022-06-07 14:30:29 -05:00
#else
new();
#endif
2022-06-06 23:10:30 -05:00
}
2022-06-12 23:26:39 -05:00
2022-06-24 20:41:00 -05:00
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; }
}
2022-06-12 23:26:39 -05:00
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; }
}
2022-06-06 23:10:30 -05:00
}