Example #1
0
        public FundingStreamPermissionHandler(IUsersApiClient usersApiClient, IOptions <PermissionOptions> permissionOptions)
        {
            Guard.ArgumentNotNull(usersApiClient, nameof(usersApiClient));
            Guard.ArgumentNotNull(permissionOptions, nameof(permissionOptions));

            _usersApiClient    = usersApiClient;
            _permissionOptions = permissionOptions.Value;
        }
Example #2
0
        public SpecificationPermissionHandler(IUsersApiClient usersApiClient, IOptions <PermissionOptions> permissionOptions, IFeatureToggle features)
        {
            Guard.ArgumentNotNull(usersApiClient, nameof(usersApiClient));
            Guard.ArgumentNotNull(permissionOptions, nameof(permissionOptions));
            Guard.ArgumentNotNull(features, nameof(features));

            _usersApiClient    = usersApiClient;
            _permissionOptions = permissionOptions.Value;
            _features          = features;
        }