I have upgrade ABP suite to 5.2.0.
**********************************************************************
** Visual Studio 2022 Developer PowerShell v17.1.3
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
PS D:\abp-change\NuGetReferenceUpdator> abp suite
[05:56:46 INF] ABP CLI (https://abp.io)
[05:56:47 INF] Version 5.2.0 (Stable)
Starting Suite v5.2.0 ...
Opening http://localhost:3000
Press Ctrl+C to shut down.
And I have click 'Update all ABP packages'. It excutes successfully. but the dialog is version 5.1.4
Waiting for reply……
I wrote my functions to read the value I need. I am testing and waiting answers from you.
namespace Yee.Change.Common.WebShared.IdentityServers
{
using System;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
using Volo.Abp.Settings;
using System.Threading.Tasks;
using System.Collections.Generic;
public class SettingUtils
{
public async Task<string> GetSetting(ISettingProvider settingProvider, string externalProviderSchema, string name)
{
string json = await settingProvider.GetOrNullAsync("Abp.Account.ExternalProviders");
if (string.IsNullOrWhiteSpace(json))
{
throw new Exception("json is null");
}
List<ExternalProviderSettings> providers = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ExternalProviderSettings>>(json);
ExternalProviderSettings externalProvider = providers.FirstOrDefault(p => p.Name == externalProviderSchema);
PropertityInfo properti = externalProvider.Propertities.First(p => p.Name == name);
if (properti != null)
{
return properti.Value;
}
return string.Empty;
}
}
public class ExternalProviderSettings
{
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("enabled")]
public bool Enabled { get; set; }
[JsonProperty("properties")]
public List<PropertityInfo> Propertities { get; set; }
[JsonProperty("secretProperties")]
public List<PropertityInfo> SecretPropertities { get; set; }
}
public class PropertityInfo
{
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("value")]
public string Value { get; set; }
}
}
Oh, may I use as below?
string providers= await this.SettingProvider.GetOrNullAsync("Abp.Account.ExternalProviders");
I created 2 files as below
Yee.EasyComment.Application.Contracts.Users
public class AppUserDto : IdentityUserDto
{
}
Yee.EasyComment.Domains.Users
public class AppUser : IdentityUser
{
}
My question can be change to:
If I save feature value for tenant version. Then I can't change the feature value for a single tenant?
Now, I can control the menuitem with IFetureChecker. But another question ... can not change the feature value for a single tenant ater save the value for version.