auth/csharp/AuthServiceExtensions.cs
/// <summary>
/// Gets an auth code for the user to use for logging in.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='userId'>
/// identifier of the user
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
Gets an auth code for the user to use for logging in.
Gets an auth code for the user to use for logging in .
public static async Task<UserAuthCodeResponse> GenerateAuthCodeAsync(this IAuthService operations, string userId, CancellationToken cancellationToken = default(CancellationToken))
            {
                using (var _result = await operations.GenerateAuthCodeWithHttpMessagesAsync(userId, null, cancellationToken).ConfigureAwait(false))
                {
                    return _result.Body;
                }
            }
public static async Task < UserAuthCodeResponse > GenerateAuthCodeAsync ( this IAuthService operations , string userId , CancellationToken cancellationToken = default ( CancellationToken ) ) { using ( var _result = await operations . GenerateAuthCodeWithHttpMessagesAsync ( userId , null , cancellationToken ) . ConfigureAwait ( false ) ) { return _result . Body ; } }
Gets an auth code for the user to use for logging in.
Gets an auth code for the user to use for logging in .
IAuthService
this
userId
string
identifier of the user
identifier of the user
cancellationToken
CancellationToken
The cancellation token.
The cancellation token .
operations
The operations group for this extension method.
The operations group for this extension method .