Amazon.CognitoIdentity.CognitoAWSCredentials.GetCredentialsAsync C# (CSharp) Метод

GetCredentialsAsync() публичный Метод

Returns an instance of ImmutableCredentials for this instance
public GetCredentialsAsync ( AmazonCognitoIdentityCallback callback, AsyncOptions options = null ) : void
callback AmazonCognitoIdentityCallback The callback which is executed when the asynchronous operations is completed
options Amazon.Runtime.AsyncOptions Options for executing asynchronous operation
Результат void
        public void GetCredentialsAsync(AmazonCognitoIdentityCallback<ImmutableCredentials> callback, AsyncOptions options = null)
        {
            options = options == null ? new AsyncOptions() : options;

            CognitoIdentityAsyncExecutor.ExecuteAsync<ImmutableCredentials>(() =>
            {
                return GetCredentials();
            }, options, callback);
        }