예제 #1
0
 public ClearCacheActivity(FeatureOptions featureOptions, TeamOrchestratorOptions options, IScheduleCacheService scheduleCacheService, ITimeOffCacheService timeOffCacheService)
 {
     _featureOptions       = featureOptions ?? throw new ArgumentNullException(nameof(featureOptions));
     _options              = options ?? throw new ArgumentNullException(nameof(options));
     _scheduleCacheService = scheduleCacheService ?? throw new ArgumentNullException(nameof(scheduleCacheService));
     _timeOffCacheService  = timeOffCacheService ?? throw new ArgumentNullException(nameof(timeOffCacheService));
 }
 public UnsubscribeTrigger(FeatureOptions options, ConnectorOptions connectorOptions, ISecretsService secretsService, IScheduleConnectorService scheduleConnectorService)
 {
     _options                  = options ?? throw new ArgumentNullException(nameof(options));
     _secretsService           = secretsService ?? throw new ArgumentNullException(nameof(secretsService));
     _scheduleConnectorService = scheduleConnectorService ?? throw new ArgumentNullException(nameof(scheduleConnectorService));
     _connectorOptions         = connectorOptions ?? throw new ArgumentNullException(nameof(connectorOptions));
 }
예제 #3
0
 public InitController(CorwordsContext context, UserManager <ApplicationUser> userManager, IOptions <FirstRunOptions> firstRunOptions, IOptions <FeatureOptions> featureOptions)
 {
     _context         = context;
     _userManager     = userManager;
     _firstRunOptions = firstRunOptions.Value;
     _featureOptions  = featureOptions.Value;
 }
        /// <summary>
        /// constructor
        /// </summary>
        public HaspDongle(int inProductcode, ushort inClientcode)
        {
            mProductcode  = inProductcode;//1001;// 1050;
            mCRCTable     = new uint[256];
            mKey          = 0;
            mClient       = inClientcode;
            mLicenseCount = 0;

            options = FeatureOptions.NotRemote;
            feature = HaspFeature.ProgNumDefault;
            feature.SetOptions(options, FeatureOptions.Default);

            hasp = new Hasp(feature);

            mLicenses = new List <License>();

            // first get the right key!
            using (hasp)
            {
                mKey = GetKey();
                if (mKey != 0 && hasp != null)
                {
                    GetGeneralInfo();
                    if (mLicenseCount > 0)
                    {
                        GetLicenses();
                    }
                }
            }
        }
예제 #5
0
 public OrchestratorTimerTrigger(TeamOrchestratorOptions teamOrchestratorOptions, FeatureOptions featureOptions, IScheduleConnectorService scheduleConnectorService, ISystemTimeService systemTimeService)
 {
     _options                  = teamOrchestratorOptions ?? throw new ArgumentNullException(nameof(teamOrchestratorOptions));
     _featureOptions           = featureOptions ?? throw new ArgumentNullException(nameof(featureOptions));
     _scheduleConnectorService = scheduleConnectorService ?? throw new ArgumentNullException(nameof(scheduleConnectorService));
     _systemTimeService        = systemTimeService ?? throw new ArgumentNullException(nameof(systemTimeService));
 }
예제 #6
0
 protected OpenShiftRequestHandler(TeamOrchestratorOptions teamOptions, FeatureOptions featureOptions, IScheduleConnectorService scheduleConnectorService, IScheduleCacheService scheduleCacheService, IRequestCacheService requestCacheService, ISecretsService secretsService, IStringLocalizer <ChangeRequestTrigger> stringLocalizer, ICacheService cacheService, IWfmActionService wfmActionService)
     : base(scheduleConnectorService, requestCacheService, secretsService, stringLocalizer)
 {
     _teamOptions          = teamOptions ?? throw new ArgumentNullException(nameof(teamOptions));
     _featureOptions       = featureOptions ?? throw new ArgumentNullException(nameof(featureOptions));
     _scheduleCacheService = scheduleCacheService ?? throw new ArgumentNullException(nameof(scheduleCacheService));
     _cacheService         = cacheService ?? throw new ArgumentNullException(nameof(cacheService));
     _wfmActionService     = wfmActionService ?? throw new ArgumentNullException(nameof(wfmActionService));
 }
예제 #7
0
 public TeamHealthTrigger(FeatureOptions featureOptions, ConnectorOptions options, IWfmDataService wfmDataService, IScheduleConnectorService scheduleConnectorService, ITeamsService teamsService, IScheduleCacheService scheduleCacheService, ICacheService cacheService)
 {
     _featureOptions           = featureOptions ?? throw new ArgumentNullException(nameof(featureOptions));
     _options                  = options ?? throw new ArgumentNullException(nameof(options));
     _wfmDataService           = wfmDataService ?? throw new ArgumentNullException(nameof(wfmDataService));
     _scheduleConnectorService = scheduleConnectorService ?? throw new ArgumentNullException(nameof(scheduleConnectorService));
     _teamsService             = teamsService ?? throw new ArgumentNullException(nameof(teamsService));
     _scheduleCacheService     = scheduleCacheService ?? throw new ArgumentNullException(nameof(scheduleCacheService));
     _cacheService             = cacheService ?? throw new ArgumentNullException(nameof(cacheService));
 }
예제 #8
0
        /// <summary>
        /// The operation to refine new shapes and add them to the repository.
        /// </summary>
        /// <param name="options">The options object which contains extra information
        /// which helps during the exeuction of this modus.</param>
        public static void Start(FeatureOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            Logger.Log(I_StartProc_Feature);
            FeatureManager manager = LoadFeatures(false);

            if (options.ShouldExport)
            {
                SaveFeatures(manager);
            }
            Logger.Log(I_EndProc_Feature);
        }
 public SubscribeTrigger(TeamOrchestratorOptions teamOrchestratorOptions, MicrosoftGraphOptions options,
                         FeatureOptions featureOptions, IScheduleConnectorService scheduleConnectorService, IWfmDataService wfmDataService,
                         ITeamsService teamsService, ISecretsService secretsService, IHttpClientFactory httpClientFactory,
                         ISystemTimeService systemTimeService, ITimeZoneService timeZoneService)
 {
     _teamOrchestratorOptions = teamOrchestratorOptions ?? throw new ArgumentNullException(nameof(teamOrchestratorOptions));
     _options                  = options ?? throw new ArgumentNullException(nameof(options));
     _featureOptions           = featureOptions ?? throw new ArgumentNullException(nameof(featureOptions));
     _scheduleConnectorService = scheduleConnectorService ?? throw new ArgumentNullException(nameof(scheduleConnectorService));
     _wfmDataService           = wfmDataService ?? throw new ArgumentNullException(nameof(wfmDataService));
     _teamsService             = teamsService ?? throw new ArgumentNullException(nameof(teamsService));
     _secretsService           = secretsService ?? throw new ArgumentNullException(nameof(secretsService));
     _httpClientFactory        = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory));
     _systemTimeService        = systemTimeService ?? throw new ArgumentNullException(nameof(systemTimeService));
     _timeZoneService          = timeZoneService ?? throw new ArgumentNullException(nameof(timeZoneService));
 }
예제 #10
0
 public bool DeepEquals(DestinyCharacterCustomizationOptionDefinition other)
 {
     return(other != null &&
            DisplayProperties.DeepEquals(other.DisplayProperties) &&
            Gender.DeepEquals(other.Gender) &&
            Race.DeepEquals(other.Race) &&
            DecalColorOptions.DeepEquals(other.DecalColorOptions) &&
            DecalOptions.DeepEquals(other.DecalOptions) &&
            EyeColorOptions.DeepEquals(other.EyeColorOptions) &&
            FaceOptionCinematicHostPatternIds.DeepEqualsReadOnlySimpleCollection(other.FaceOptionCinematicHostPatternIds) &&
            FaceOptions.DeepEquals(other.FaceOptions) &&
            FeatureColorOptions.DeepEquals(other.FeatureColorOptions) &&
            FeatureOptions.DeepEquals(other.FeatureOptions) &&
            HairColorOptions.DeepEquals(other.HairColorOptions) &&
            HairOptions.DeepEquals(other.HairOptions) &&
            HelmetPreferences.DeepEquals(other.HelmetPreferences) &&
            LipColorOptions.DeepEquals(other.LipColorOptions) &&
            PersonalityOptions.DeepEquals(other.PersonalityOptions) &&
            SkinColorOptions.DeepEquals(other.SkinColorOptions) &&
            Blacklisted == other.Blacklisted &&
            Hash == other.Hash &&
            Index == other.Index &&
            Redacted == other.Redacted);
 }
예제 #11
0
        static void PackFeatures(Packer packer, SortedList <ushort, FeatureData> featureData, FeatureOptions packOptions)
        {
            var packerStartPosition = packer.Position;

            ushort count = 0;

            packer.Pack(count); // count dummy

            if (featureData == null)
            {
                return;
            }

            foreach (var data in featureData.Values)
            {
                var feature = data.Feature;

                var noData = ((feature.Options & FeatureOptions.HasTransactionData) == 0) && ((feature.Options & FeatureOptions.HasMetaData) == 0);
                if (noData && (packOptions & FeatureOptions.HasTransactionData) != 0)
                {
                    count++;
                    packer.Pack(feature.FeatureId);
                    packer.Pack((ushort)0);
                }

                if ((feature.Options & packOptions) != 0)
                {
                    count++;
                    packer.Pack(feature.FeatureId);

                    var featureStartPosition = packer.Position;
                    packer.Pack((ushort)0); // size dummy

                    if ((packOptions & FeatureOptions.HasTransactionData) != 0)
                    {
                        data.PackTransactionData(packer);
                    }
                    if ((packOptions & FeatureOptions.HasMetaData) != 0)
                    {
                        data.PackMetaData(packer);
                    }

                    var size = (ushort)(packer.Position - featureStartPosition - sizeof(ushort));
                    if (size == 0)
                    {
                        throw new Exception($"Operation pack size is 0 for feature {feature.GetType().Name}/{feature.FeatureId}, {packOptions}");
                    }

                    var p = packer.Position;
                    packer.Position = featureStartPosition;
                    packer.Pack(size);
                    packer.Position = p;
                }
            }

            var endPosition = packer.Position;

            packer.Position = packerStartPosition;
            packer.Pack(count);
            packer.Position = endPosition;
        }
 public AvailabilityOrchestrator(TeamOrchestratorOptions options, FeatureOptions featureOptions)
 {
     _options        = options ?? throw new ArgumentNullException(nameof(options));
     _featureOptions = featureOptions ?? throw new ArgumentNullException(nameof(featureOptions));
 }
예제 #13
0
 public ClearScheduleOrchestrator(FeatureOptions featureOptions, TeamOrchestratorOptions options)
 {
     _featureOptions = featureOptions ?? throw new ArgumentNullException(nameof(featureOptions));
     _options        = options ?? throw new ArgumentNullException(nameof(options));
 }
예제 #14
0
 public Feature(ushort featureId, FeatureOptions options)
 {
     FeatureId = featureId;
     Options   = options;
 }
예제 #15
0
        static void UnpackFeatures(Unpacker unpacker, SortedList <ushort, FeatureData> featureData, HashSet <ushort> unknownFeatures, FeatureOptions unpackOptions)
        {
            var count = unpacker.UnpackUshort();

            for (var i = 0; i < count; i++)
            {
                var featureId = unpacker.UnpackUshort();
                var size      = unpacker.UnpackUshort();

                var feature = Feature.GetFeature(featureId);
                if (feature != null)
                {
                    if (!featureData.TryGetValue(featureId, out var data))
                    {
                        data = feature.NewFeatureData();
                        featureData[featureId] = data;
                    }

                    var noData = ((feature.Options & FeatureOptions.HasTransactionData) == 0) && ((feature.Options & FeatureOptions.HasMetaData) == 0);
                    if (noData)
                    {
                        continue;
                    }

                    if ((unpackOptions & FeatureOptions.HasTransactionData) != 0)
                    {
                        data.UnpackTransactionData(unpacker, size);
                    }
                    if ((unpackOptions & FeatureOptions.HasMetaData) != 0)
                    {
                        data.UnpackMetaData(unpacker, size);
                    }
                }
                else
                {
                    unknownFeatures.Add(featureId);
                    unpacker.Position += size;
                }
            }
        }
예제 #16
0
 public CancelOpenShiftRequestHandler(TeamOrchestratorOptions teamOptions, FeatureOptions featureOptions, IScheduleConnectorService scheduleConnectorService, IScheduleCacheService scheduleCacheService, IRequestCacheService requestCacheService, ISecretsService secretsService, IStringLocalizer <ChangeRequestTrigger> stringLocalizer, ICacheService cacheService, IWfmActionService wfmActionService)
     : base(teamOptions, featureOptions, scheduleConnectorService, scheduleCacheService, requestCacheService, secretsService, stringLocalizer, cacheService, wfmActionService)
 {
 }
예제 #17
0
 public OpenShiftsOrchestrator(FeatureOptions featureOptions, TeamOrchestratorOptions options)
 {
     _featureOptions = featureOptions ?? throw new ArgumentNullException(nameof(featureOptions));
     _options        = options ?? throw new ArgumentNullException(nameof(options));
 }