2023-12-18 13:51:40 +05:00
|
|
|
|
using AsbCloudApp.Data.DetectedOperation;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudInfrastructure.Services.DetectOperations;
|
|
|
|
|
|
|
|
|
|
public static class EnabledSubsystemsFlagsExtensions
|
|
|
|
|
{
|
2024-07-04 11:02:45 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Есть ли флаг подсистемы у операции
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="flags"></param>
|
|
|
|
|
/// <param name="enabledSubsystems"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public static bool HasEnabledSubsystems(this EnabledSubsystemsFlags flags, int enabledSubsystems)
|
|
|
|
|
=> (enabledSubsystems & (int)flags) > 0;
|
2023-12-18 13:51:40 +05:00
|
|
|
|
}
|