Files
StockSharp/Diagram.Core/CompositionLoadingContext.cs
T

23 lines
635 B
C#

namespace StockSharp.Diagram;
using StockSharp.Alerts;
/// <summary>
/// Loading context.
/// </summary>
/// <remarks>
/// Initializes a new instance of the <see cref="CompositionLoadingContext"/>.
/// </remarks>
/// <param name="allowCode"><see cref="AllowCode"/></param>
public class CompositionLoadingContext(bool allowCode)
{
/// <summary>
/// Allow <see cref="DiagramElement.IsExternalCode"/> elements.
/// </summary>
public bool AllowCode { get; } = allowCode;
/// <summary>
/// Allow alerts for the diagram.
/// </summary>
public ISet<AlertNotifications> AllowAlerts { get; } = new HashSet<AlertNotifications>();
}