Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 6f6129c

Browse files
committed
chore: fixes ambiguous call to constructor
Signed-off-by: Vincent Biret <[email protected]>
1 parent 3c6fdbe commit 6f6129c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sample/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static CommandLineBuilder BuildCommandLine()
146146
rootCommand.Add(new LoginCommand(builder));
147147
rootCommand.AddGlobalOption(debugOption);
148148

149-
if (rootCommand.Subcommands.FirstOrDefault(static c => c.Name == "users") is {} usersCmd)
149+
if (rootCommand.Subcommands.FirstOrDefault(static c => c.Name == "users") is { } usersCmd)
150150
{
151151
usersCmd.AddAlias("me");
152152
}
@@ -188,7 +188,7 @@ static IHostBuilder CreateHostBuilder(string[] args) =>
188188
AuthenticationStrategy authStrategy = authSettings?.Strategy ?? AuthenticationStrategy.DeviceCode;
189189
var credential = serviceFactory.GetTokenCredentialAsync(authStrategy, authSettings?.TenantId, authSettings?.ClientId, authSettings?.ClientCertificateName, authSettings?.ClientCertificateThumbPrint, authSettings?.Environment ?? CloudEnvironment.Global);
190190
credential.Wait();
191-
return new AzureIdentityAuthenticationProvider(credential.Result);
191+
return new AzureIdentityAuthenticationProvider(credential.Result, isCaeEnabled: true); // disambiguates the call to the constructor
192192
});
193193
services.AddSingleton<IRequestAdapter>(p =>
194194
{

0 commit comments

Comments
 (0)