IServiceEndpointProviderFactory.TryCreateProvider Method

Definition

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.

Applies to