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 |
namespace Volo.Abp.AspNetCore.Components.Web |
||||
{ |
{ |
||||
public class DefaultServerUrlProvider : IServerUrlProvider, ISingletonDependency |
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 |
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 |
namespace Volo.Abp.Http.Client |
||||
{ |
{ |
||||
public interface IRemoteServiceConfigurationProvider |
public interface IRemoteServiceConfigurationProvider |
||||
{ |
{ |
||||
[NotNull] |
[ItemNotNull] |
||||
RemoteServiceConfiguration GetConfigurationOrDefault(string name); |
Task<RemoteServiceConfiguration> GetConfigurationOrDefaultAsync(string name); |
||||
|
|
||||
[CanBeNull] |
[ItemCanBeNull] |
||||
RemoteServiceConfiguration GetConfigurationOrDefaultOrNull(string name); |
Task<RemoteServiceConfiguration> GetConfigurationOrDefaultOrNullAsync(string name); |
||||
} |
} |
||||
} |
} |
||||
Loading…
Reference in new issue