| IAuthenticationProviderGetEndpoint Method  | 
            Gets the endpoints for the specified service.
            
            Uses a region specific endpoint if available, otherwise returns the global endpoint.
            
 
Namespace: OpenStack.AuthenticationAssembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
SyntaxTask<string> GetEndpoint(
	IServiceType serviceType,
	string region,
	bool useInternalUrl,
	CancellationToken cancellationToken
)
Function GetEndpoint ( 
	serviceType As IServiceType,
	region As String,
	useInternalUrl As Boolean,
	cancellationToken As CancellationToken
) As Task(Of String)
Task<String^>^ GetEndpoint(
	IServiceType^ serviceType, 
	String^ region, 
	bool useInternalUrl, 
	CancellationToken cancellationToken
)
abstract GetEndpoint : 
        serviceType : IServiceType * 
        region : string * 
        useInternalUrl : bool * 
        cancellationToken : CancellationToken -> Task<string> 
Parameters
- serviceType
 - Type: OpenStack.AuthenticationIServiceType
Type of the service. - region
 - Type: SystemString
The region. - useInternalUrl
 - Type: SystemBoolean
if set to true [use internal URL]. - cancellationToken
 - Type: System.ThreadingCancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. 
Return Value
Type: 
TaskStringThe requested endpoint.
Exceptions| Exception | Condition | 
|---|
| UserAuthenticationException | 
            The user does not have access to the service or it does not exist.
            or
            The user does not have access to the service endpoint in the specified region.
             | 
| RegionRequiredException | No region was specified and the {0} service does not provide a region-independent endpoint. | 
Version Information.NET Framework
Supported in: 4.5
openstack.net
Supported in: 1.6, 1.5
See Also