Browse Source

fix #931 The dictionary configuration key uses the string name of the variable.

pull/932/head
maliming 8 years ago
parent
commit
3eb76db2c6
  1. 4
      framework/src/Volo.Abp.Http.Client/Volo/Abp/Http/Client/RemoteServiceConfiguration.cs
  2. 14
      framework/src/Volo.Abp.IdentityModel/Volo/Abp/IdentityModel/IdentityClientConfiguration.cs

4
framework/src/Volo.Abp.Http.Client/Volo/Abp/Http/Client/RemoteServiceConfiguration.cs

@ -10,7 +10,7 @@ namespace Volo.Abp.Http.Client
public string BaseUrl
{
get => this.GetOrDefault(nameof(BaseUrl));
set => this[BaseUrl] = value;
set => this[nameof(BaseUrl)] = value;
}
/// <summary>
@ -19,7 +19,7 @@ namespace Volo.Abp.Http.Client
public string Version
{
get => this.GetOrDefault(nameof(Version));
set => this[Version] = value;
set => this[nameof(Version)] = value;
}
public RemoteServiceConfiguration()

14
framework/src/Volo.Abp.IdentityModel/Volo/Abp/IdentityModel/IdentityClientConfiguration.cs

@ -12,7 +12,7 @@ namespace Volo.Abp.IdentityModel
public string GrantType
{
get => this.GetOrDefault(nameof(GrantType));
set => this[GrantType] = value;
set => this[nameof(GrantType)] = value;
}
/// <summary>
@ -21,7 +21,7 @@ namespace Volo.Abp.IdentityModel
public string ClientId
{
get => this.GetOrDefault(nameof(ClientId));
set => this[ClientId] = value;
set => this[nameof(ClientId)] = value;
}
/// <summary>
@ -30,7 +30,7 @@ namespace Volo.Abp.IdentityModel
public string ClientSecret
{
get => this.GetOrDefault(nameof(ClientSecret));
set => this[ClientSecret] = value;
set => this[nameof(ClientSecret)] = value;
}
/// <summary>
@ -40,7 +40,7 @@ namespace Volo.Abp.IdentityModel
public string UserName
{
get => this.GetOrDefault(nameof(UserName));
set => this[UserName] = value;
set => this[nameof(UserName)] = value;
}
/// <summary>
@ -50,7 +50,7 @@ namespace Volo.Abp.IdentityModel
public string UserPassword
{
get => this.GetOrDefault(nameof(UserPassword));
set => this[UserPassword] = value;
set => this[nameof(UserPassword)] = value;
}
/// <summary>
@ -59,7 +59,7 @@ namespace Volo.Abp.IdentityModel
public string Authority
{
get => this.GetOrDefault(nameof(Authority));
set => this[Authority] = value;
set => this[nameof(Authority)] = value;
}
/// <summary>
@ -68,7 +68,7 @@ namespace Volo.Abp.IdentityModel
public string Scope
{
get => this.GetOrDefault(nameof(Scope));
set => this[Scope] = value;
set => this[nameof(Scope)] = value;
}
public IdentityClientConfiguration()

Loading…
Cancel
Save