Class EurekaHttpClient
Inheritance
System.Object
EurekaHttpClient
Assembly: Steeltoe.Discovery.Eureka.dll
Syntax
public class EurekaHttpClient : object, IEurekaHttpClient
Constructors
|
Edit this page
View Source
EurekaHttpClient()
Declaration
protected EurekaHttpClient()
|
Edit this page
View Source
EurekaHttpClient(IOptionsMonitor<EurekaClientOptions>, IHttpClientHandlerProvider, ILoggerFactory)
Declaration
public EurekaHttpClient(IOptionsMonitor<EurekaClientOptions> config, IHttpClientHandlerProvider handlerProvider = null, ILoggerFactory logFactory = null)
Parameters
Type |
Name |
Description |
IOptionsMonitor<EurekaClientOptions> |
config |
|
IHttpClientHandlerProvider |
handlerProvider |
|
ILoggerFactory |
logFactory |
|
|
Edit this page
View Source
EurekaHttpClient(IEurekaClientConfig, HttpClient, ILoggerFactory)
Declaration
public EurekaHttpClient(IEurekaClientConfig config, HttpClient client, ILoggerFactory logFactory = null)
Parameters
|
Edit this page
View Source
EurekaHttpClient(IEurekaClientConfig, IDictionary<String, String>, ILoggerFactory, IHttpClientHandlerProvider)
Declaration
public EurekaHttpClient(IEurekaClientConfig config, IDictionary<string, string> headers, ILoggerFactory logFactory = null, IHttpClientHandlerProvider handlerProvider = null)
Parameters
Type |
Name |
Description |
IEurekaClientConfig |
config |
|
IDictionary<System.String, System.String> |
headers |
|
ILoggerFactory |
logFactory |
|
IHttpClientHandlerProvider |
handlerProvider |
|
|
Edit this page
View Source
EurekaHttpClient(IEurekaClientConfig, ILoggerFactory, IHttpClientHandlerProvider)
Declaration
public EurekaHttpClient(IEurekaClientConfig config, ILoggerFactory logFactory = null, IHttpClientHandlerProvider handlerProvider = null)
Parameters
Type |
Name |
Description |
IEurekaClientConfig |
config |
|
ILoggerFactory |
logFactory |
|
IHttpClientHandlerProvider |
handlerProvider |
|
Fields
|
Edit this page
View Source
_config
Declaration
protected IEurekaClientConfig _config
Field Value
|
Edit this page
View Source
_failingServiceUrls
Declaration
protected IList<string> _failingServiceUrls
Field Value
Type |
Description |
IList<System.String> |
|
|
Edit this page
View Source
_handlerProvider
Declaration
protected IHttpClientHandlerProvider _handlerProvider
Field Value
Type |
Description |
IHttpClientHandlerProvider |
|
|
Edit this page
View Source
Declaration
protected IDictionary<string, string> _headers
Field Value
Type |
Description |
IDictionary<System.String, System.String> |
|
|
Edit this page
View Source
_httpClient
Declaration
protected HttpClient _httpClient
Field Value
Type |
Description |
HttpClient |
|
|
Edit this page
View Source
_lock
Declaration
Field Value
Type |
Description |
System.Object |
|
|
Edit this page
View Source
_logger
Declaration
protected ILogger _logger
Field Value
|
Edit this page
View Source
_serviceUrl
Declaration
protected string _serviceUrl
Field Value
Type |
Description |
System.String |
|
Properties
|
Edit this page
View Source
Config
Declaration
protected virtual IEurekaClientConfig Config { get; }
Property Value
Methods
|
Edit this page
View Source
CancelAsync(String, String)
Declaration
public virtual Task<EurekaHttpResponse> CancelAsync(string appName, string id)
Parameters
Type |
Name |
Description |
System.String |
appName |
|
System.String |
id |
|
Returns
|
Edit this page
View Source
DeleteStatusOverrideAsync(String, String, InstanceInfo)
Declaration
public virtual Task<EurekaHttpResponse> DeleteStatusOverrideAsync(string appName, string id, InstanceInfo info)
Parameters
Type |
Name |
Description |
System.String |
appName |
|
System.String |
id |
|
InstanceInfo |
info |
|
Returns
|
Edit this page
View Source
DoGetApplicationsAsync(String, ISet<String>)
Declaration
protected virtual async Task<EurekaHttpResponse<Applications>> DoGetApplicationsAsync(string path, ISet<string> regions)
Parameters
Type |
Name |
Description |
System.String |
path |
|
ISet<System.String> |
regions |
|
Returns
|
Edit this page
View Source
DoGetInstanceAsync(String)
Declaration
protected virtual async Task<EurekaHttpResponse<InstanceInfo>> DoGetInstanceAsync(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
|
Edit this page
View Source
GetApplicationAsync(String)
Declaration
public virtual Task<EurekaHttpResponse<Application>> GetApplicationAsync(string appName)
Parameters
Type |
Name |
Description |
System.String |
appName |
|
Returns
|
Edit this page
View Source
GetApplicationsAsync(ISet<String>)
Declaration
public virtual Task<EurekaHttpResponse<Applications>> GetApplicationsAsync(ISet<string> regions = null)
Parameters
Type |
Name |
Description |
ISet<System.String> |
regions |
|
Returns
|
Edit this page
View Source
GetDeltaAsync(ISet<String>)
Declaration
public virtual Task<EurekaHttpResponse<Applications>> GetDeltaAsync(ISet<string> regions = null)
Parameters
Type |
Name |
Description |
ISet<System.String> |
regions |
|
Returns
|
Edit this page
View Source
GetHttpClient(IEurekaClientConfig)
Declaration
protected virtual HttpClient GetHttpClient(IEurekaClientConfig config)
Parameters
Returns
Type |
Description |
HttpClient |
|
|
Edit this page
View Source
GetInstanceAsync(String)
Declaration
public virtual Task<EurekaHttpResponse<InstanceInfo>> GetInstanceAsync(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
|
Edit this page
View Source
GetInstanceAsync(String, String)
Declaration
public virtual Task<EurekaHttpResponse<InstanceInfo>> GetInstanceAsync(string appName, string id)
Parameters
Type |
Name |
Description |
System.String |
appName |
|
System.String |
id |
|
Returns
|
Edit this page
View Source
GetRequestContent(Object)
Declaration
protected virtual HttpContent GetRequestContent(object toSerialize)
Parameters
Type |
Name |
Description |
System.Object |
toSerialize |
|
Returns
Type |
Description |
HttpContent |
|
|
Edit this page
View Source
GetRequestMessage(HttpMethod, Uri)
Declaration
protected HttpRequestMessage GetRequestMessage(HttpMethod method, Uri requestUri)
Parameters
Type |
Name |
Description |
HttpMethod |
method |
|
Uri |
requestUri |
|
Returns
Type |
Description |
HttpRequestMessage |
|
|
Edit this page
View Source
GetRequestUri(String, IDictionary<String, String>)
Declaration
protected virtual Uri GetRequestUri(string baseUri, IDictionary<string, string> queryValues = null)
Parameters
Type |
Name |
Description |
System.String |
baseUri |
|
IDictionary<System.String, System.String> |
queryValues |
|
Returns
|
Edit this page
View Source
GetSecureVipAsync(String, ISet<String>)
Declaration
public virtual Task<EurekaHttpResponse<Applications>> GetSecureVipAsync(string secureVipAddress, ISet<string> regions = null)
Parameters
Type |
Name |
Description |
System.String |
secureVipAddress |
|
ISet<System.String> |
regions |
|
Returns
|
Edit this page
View Source
GetVipAsync(String, ISet<String>)
Declaration
public virtual Task<EurekaHttpResponse<Applications>> GetVipAsync(string vipAddress, ISet<string> regions = null)
Parameters
Type |
Name |
Description |
System.String |
vipAddress |
|
ISet<System.String> |
regions |
|
Returns
|
Edit this page
View Source
Initialize(IDictionary<String, String>, ILoggerFactory)
Declaration
protected void Initialize(IDictionary<string, string> headers, ILoggerFactory logFactory)
Parameters
Type |
Name |
Description |
IDictionary<System.String, System.String> |
headers |
|
ILoggerFactory |
logFactory |
|
|
Edit this page
View Source
MakeServiceUrl(String)
Declaration
protected static string MakeServiceUrl(string serviceUrl)
Parameters
Type |
Name |
Description |
System.String |
serviceUrl |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
MakeServiceUrls(String)
Declaration
protected static IList<string> MakeServiceUrls(string serviceUrls)
Parameters
Type |
Name |
Description |
System.String |
serviceUrls |
|
Returns
Type |
Description |
IList<System.String> |
|
|
Edit this page
View Source
RegisterAsync(InstanceInfo)
Declaration
public virtual Task<EurekaHttpResponse> RegisterAsync(InstanceInfo info)
Parameters
Returns
|
Edit this page
View Source
SendHeartBeatAsync(String, String, InstanceInfo, InstanceStatus)
Declaration
public virtual Task<EurekaHttpResponse<InstanceInfo>> SendHeartBeatAsync(string appName, string id, InstanceInfo info, InstanceStatus overriddenStatus)
Parameters
Returns
|
Edit this page
View Source
Shutdown()
Declaration
public virtual void Shutdown()
|
Edit this page
View Source
StatusUpdateAsync(String, String, InstanceStatus, InstanceInfo)
Declaration
public virtual Task<EurekaHttpResponse> StatusUpdateAsync(string appName, string id, InstanceStatus newStatus, InstanceInfo info)
Parameters
Returns
Implements