mirror of https://github.com/abpframework/abp.git
9 changed files with 43 additions and 33 deletions
@ -1,12 +1,13 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.DependencyInjection; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Components.Web |
|||
{ |
|||
public class DefaultServerUrlProvider : IServerUrlProvider, ISingletonDependency |
|||
{ |
|||
public string GetBaseUrl(string remoteServiceName = null) |
|||
public Task<string> GetBaseUrlAsync(string remoteServiceName = null) |
|||
{ |
|||
return "/"; |
|||
return Task.FromResult("/"); |
|||
} |
|||
} |
|||
} |
|||
@ -1,7 +1,9 @@ |
|||
namespace Volo.Abp.AspNetCore.Components.Web |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Components.Web |
|||
{ |
|||
public interface IServerUrlProvider |
|||
{ |
|||
string GetBaseUrl(string remoteServiceName = null); |
|||
Task<string> GetBaseUrlAsync(string remoteServiceName = null); |
|||
} |
|||
} |
|||
@ -1,13 +1,14 @@ |
|||
using JetBrains.Annotations; |
|||
using System.Threading.Tasks; |
|||
using JetBrains.Annotations; |
|||
|
|||
namespace Volo.Abp.Http.Client |
|||
{ |
|||
public interface IRemoteServiceConfigurationProvider |
|||
{ |
|||
[NotNull] |
|||
RemoteServiceConfiguration GetConfigurationOrDefault(string name); |
|||
[ItemNotNull] |
|||
Task<RemoteServiceConfiguration> GetConfigurationOrDefaultAsync(string name); |
|||
|
|||
[CanBeNull] |
|||
RemoteServiceConfiguration GetConfigurationOrDefaultOrNull(string name); |
|||
[ItemCanBeNull] |
|||
Task<RemoteServiceConfiguration> GetConfigurationOrDefaultOrNullAsync(string name); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue