IServiceEndpointProviderFactory.TryCreateProvider Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tries to create an IServiceEndpointProvider instance for the specified query
.
public bool TryCreateProvider (Microsoft.Extensions.ServiceDiscovery.ServiceEndpointQuery query, out Microsoft.Extensions.ServiceDiscovery.IServiceEndpointProvider? provider);
abstract member TryCreateProvider : Microsoft.Extensions.ServiceDiscovery.ServiceEndpointQuery * IServiceEndpointProvider -> bool
Public Function TryCreateProvider (query As ServiceEndpointQuery, ByRef provider As IServiceEndpointProvider) As Boolean
Parameters
- query
- ServiceEndpointQuery
The service to create the provider for.
- provider
- IServiceEndpointProvider
The provider.
Returns
true
if the provider was created, false
otherwise.