Class IServiceInstanceProviderExtensions
Inheritance
System.Object
IServiceInstanceProviderExtensions
Namespace: Steeltoe.Common.Discovery
Assembly: Steeltoe.Common.dll
Syntax
public static class IServiceInstanceProviderExtensions : object
Methods
| Edit this page View SourceGetInstancesWithCacheAsync(IServiceInstanceProvider, String, IDistributedCache, DistributedCacheEntryOptions, String)
Declaration
public static async Task<IList<IServiceInstance>> GetInstancesWithCacheAsync(this IServiceInstanceProvider serviceInstanceProvider, string serviceId, IDistributedCache distributedCache = null, DistributedCacheEntryOptions cacheOptions = null, string serviceInstancesKeyPrefix = "ServiceInstances:")
Parameters
Type | Name | Description |
---|---|---|
IServiceInstanceProvider | serviceInstanceProvider | |
System.String | serviceId | |
IDistributedCache | distributedCache | |
DistributedCacheEntryOptions | cacheOptions | |
System.String | serviceInstancesKeyPrefix |
Returns
Type | Description |
---|---|
Task<IList<IServiceInstance>> |