|
|
@ -2,12 +2,12 @@ |
|
|
|
|
|
|
|
|
namespace Volo.Abp.Http.Client; |
|
|
namespace Volo.Abp.Http.Client; |
|
|
|
|
|
|
|
|
public class RemoteServiceConfiguration : Dictionary<string, string> |
|
|
public class RemoteServiceConfiguration : Dictionary<string, string?> |
|
|
{ |
|
|
{ |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Base Url.
|
|
|
/// Base Url.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public string BaseUrl { |
|
|
public string? BaseUrl { |
|
|
get => this.GetOrDefault(nameof(BaseUrl)); |
|
|
get => this.GetOrDefault(nameof(BaseUrl)); |
|
|
set => this[nameof(BaseUrl)] = value; |
|
|
set => this[nameof(BaseUrl)] = value; |
|
|
} |
|
|
} |
|
|
@ -15,7 +15,7 @@ public class RemoteServiceConfiguration : Dictionary<string, string> |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Version.
|
|
|
/// Version.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public string Version { |
|
|
public string? Version { |
|
|
get => this.GetOrDefault(nameof(Version)); |
|
|
get => this.GetOrDefault(nameof(Version)); |
|
|
set => this[nameof(Version)] = value; |
|
|
set => this[nameof(Version)] = value; |
|
|
} |
|
|
} |
|
|
@ -25,7 +25,7 @@ public class RemoteServiceConfiguration : Dictionary<string, string> |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public RemoteServiceConfiguration(string baseUrl, string version = null) |
|
|
public RemoteServiceConfiguration(string baseUrl, string? version = null) |
|
|
{ |
|
|
{ |
|
|
this[nameof(BaseUrl)] = baseUrl; |
|
|
this[nameof(BaseUrl)] = baseUrl; |
|
|
this[nameof(Version)] = version; |
|
|
this[nameof(Version)] = version; |
|
|
|