src/Simple.OData.Client.Core/ODataClient.Async.cs
/// <summary>
/// Gets The service metadata as string asynchronous.
/// </summary>
/// <param name="baseUri">The URL base.</param>
/// <param name="credentials">The OData service access credentials.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>The service metadata.</returns>
Gets The service metadata as string asynchronous.
Gets The service metadata as string asynchronous .
public async static Task<string> GetMetadataDocumentAsync(Uri baseUri, ICredentials credentials, CancellationToken cancellationToken)
	{
		var session = Session.FromSettings(new ODataClientSettings(baseUri, credentials));
		await session.ResolveAdapterAsync(cancellationToken).ConfigureAwait(false);
		return session.MetadataCache.MetadataDocument;
	}
public async static Task < string > GetMetadataDocumentAsync ( Uri baseUri , ICredentials credentials , CancellationToken cancellationToken ) { var session = Session . FromSettings ( new ODataClientSettings ( baseUri , credentials ) ) ; await session . ResolveAdapterAsync ( cancellationToken ) . ConfigureAwait ( false ) ; return session . MetadataCache . MetadataDocument ; }
Gets The service metadata as string asynchronous.
Gets The service metadata as string asynchronous .
The service metadata.
The service metadata .
baseUri
Uri
The URL base.
The URL base .
credentials
ICredentials
The OData service access credentials.
The OData service access credentials .
cancellationToken
CancellationToken
The cancellation token.
The cancellation token .