Starts in:
1 DAY
19 HRS
38 MIN
37 SEC
Starts in:
1 D
19 H
38 M
37 S

Activities of "zhongfang"

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

Many files has been added.

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.

OK. I see. I will try later.

another question, I have define features. But after I saved for tenant version. I can not change the value for a single tenant.

I replaced all abp.auth.isGranted('Config. with abp.auth.isGranted('ChangeConfig.

The problem has been resolved.

Showing 71 to 80 of 120 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06