Class IServiceInstanceProviderExtensions
Inheritance
System.Object
IServiceInstanceProviderExtensions
Namespace: Steeltoe.Common.Discovery
Assembly: Steeltoe.Common.dll
Syntax
csharp
public static class IServiceInstanceProviderExtensions : object
Methods
| Edit this page View SourceGetInstancesWithCacheAsync(IServiceInstanceProvider, String, IDistributedCache, DistributedCacheEntryOptions, String)
Declaration
csharp
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 |
---|---|---|
IService |
serviceInstanceProvider | |
System. |
serviceId | |
IDistributed |
distributedCache | |
Distributed |
cacheOptions | |
System. |
serviceInstancesKeyPrefix |
Returns
Type | Description |
---|---|
Task<IList<IService |