mirror of
https://github.com/StockSharp/StockSharp.git
synced 2026-12-06 01:22:11 +00:00
23 lines
635 B
C#
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>();
|
|
} |