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

15 lines
279 B
C#

namespace StockSharp.Configuration;
/// <summary>
/// Extension class.
/// </summary>
public static class Extensions
{
/// <summary>
/// </summary>
public static long? TryGetProductId()
=> Paths
.EntryAssembly?
.GetAttribute<ProductIdAttribute>()?
.ProductId;
}