Files
StockSharp/Configuration/ProductIdAttribute.cs
T
2024-08-18 23:21:12 +03:00

22 lines
548 B
C#

namespace StockSharp.Configuration;
/// <summary>
/// Product id attribute.
/// </summary>
[AttributeUsage(AttributeTargets.Assembly, Inherited = false, AllowMultiple = false)]
public class ProductIdAttribute : Attribute
{
/// <summary>
/// Product id.
/// </summary>
public long ProductId { get; }
/// <summary>
/// Initializes a new instance of the <see cref="ProductIdAttribute"/>.
/// </summary>
/// <param name="productId"><see cref="ProductId"/></param>
public ProductIdAttribute(long productId)
{
ProductId = productId;
}
}