src/Simple.OData.Client.Core/ODataClient.Async.cs
/// <summary>
/// Retrieves the OData service metadata.
/// </summary>
/// <typeparam name="T">OData protocol specific metadata interface</typeparam>
/// <param name="baseUri">The URL base of the OData service.</param>
/// <param name="credentials">The OData service access credentials.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>
/// The service metadata.
/// </returns>
Retrieves the OData service metadata.
Retrieves the OData service metadata .
public async static Task<T> GetMetadataAsync<T>(Uri baseUri, ICredentials credentials, CancellationToken cancellationToken)
	{
		var session = Session.FromSettings(new ODataClientSettings(baseUri, credentials));
		await session.ResolveAdapterAsync(cancellationToken).ConfigureAwait(false);
		return (T)session.Adapter.Model;
	}
public async static Task < T > GetMetadataAsync < T > ( Uri baseUri , ICredentials credentials , CancellationToken cancellationToken ) { var session = Session . FromSettings ( new ODataClientSettings ( baseUri , credentials ) ) ; await session . ResolveAdapterAsync ( cancellationToken ) . ConfigureAwait ( false ) ; return ( T ) session . Adapter . Model ; }
Retrieves the OData service metadata.
Retrieves the OData service metadata .
The service metadata.
The service metadata .
baseUri
Uri
The URL base of the OData service.
The URL base of the OData service .
credentials
ICredentials
The OData service access credentials.
The OData service access credentials .
cancellationToken
CancellationToken
The cancellation token.
The cancellation token .
typeparam
OData protocol specific metadata interface
OData protocol specific metadata interface