public override Dictionary <string, IRecipe> GetRecipes(Encodings encodings) { Dictionary <string, IRecipe> recipes = new Dictionary <string, IRecipe>(); foreach (JSONItem item in encodings.ResourceItems) { if (AllowedResourceForms.Contains(item.Form)) { if (OnlySpecificResources) { if (!AllowedResources.Contains(item.ID)) { continue; } } List <ItemRate> products = new List <ItemRate> { new ItemRate(item.ID, ItemsPerCycle) }; IRecipe recipe = new JSONResourceExtractorRecipe(ID + item.ID, CycleTime, ID, new List <ItemRate>(), products, item.DisplayName); recipes.Add(recipe.ID, recipe); } } return(recipes); }
public IdentityServer4.Models.Client Convert() { return(new IdentityServer4.Models.Client() { ClientId = Id.ToString(), ClientName = Name, AllowedGrantTypes = IdentityServer4.Models.GrantTypes.ResourceOwnerPassword, ClientSecrets = { new IdentityServer4.Models.Secret(SecretHash) }, AllowedScopes = AllowedResources.Select(c => c.Name).ToList() }); }
public void Clear() { ModControl = true; AllowedParts.Clear(); AllowedResources.Clear(); MissingExpansions.Clear(); ForbiddenFilesFound.Clear(); NonListedFilesFound.Clear(); MandatoryFilesNotFound.Clear(); MandatoryFilesDifferentSha.Clear(); MandatoryPartsNotFound.Clear(); ModControlData = null; }