Class RoundRobinLoadBalancer
Inheritance
System.Object
RoundRobinLoadBalancer
Assembly: Steeltoe.Common.dll
Syntax
public class RoundRobinLoadBalancer : object, ILoadBalancer
Constructors
|
Edit this page
View Source
RoundRobinLoadBalancer(IServiceInstanceProvider, IDistributedCache, DistributedCacheEntryOptions, ILogger)
Declaration
public RoundRobinLoadBalancer(IServiceInstanceProvider serviceInstanceProvider, IDistributedCache distributedCache = null, DistributedCacheEntryOptions cacheEntryOptions = null, ILogger logger = null)
Parameters
Type |
Name |
Description |
IServiceInstanceProvider |
serviceInstanceProvider |
|
IDistributedCache |
distributedCache |
|
DistributedCacheEntryOptions |
cacheEntryOptions |
|
ILogger |
logger |
|
Fields
|
Edit this page
View Source
IndexKeyPrefix
Declaration
public string IndexKeyPrefix
Field Value
Type |
Description |
System.String |
|
Methods
|
Edit this page
View Source
ResolveServiceInstanceAsync(Uri)
Declaration
public virtual async Task<Uri> ResolveServiceInstanceAsync(Uri request)
Parameters
Type |
Name |
Description |
Uri |
request |
|
Returns
Type |
Description |
Task<Uri> |
|
|
Edit this page
View Source
UpdateStatsAsync(Uri, Uri, TimeSpan, Exception)
Declaration
public virtual Task UpdateStatsAsync(Uri originalUri, Uri resolvedUri, TimeSpan responseTime, Exception exception)
Parameters
Type |
Name |
Description |
Uri |
originalUri |
|
Uri |
resolvedUri |
|
TimeSpan |
responseTime |
|
Exception |
exception |
|
Returns
Implements