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

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

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

Loading…
Cancel
Save