diff --git a/iwa-console/AuthenticationConfig.cs b/iwa-console/AuthenticationConfig.cs index bb82964..eb09f79 100644 --- a/iwa-console/AuthenticationConfig.cs +++ b/iwa-console/AuthenticationConfig.cs @@ -58,7 +58,7 @@ public static SampleConfiguration ReadFromJsonFile(string path) // .NET configuration IConfigurationRoot Configuration; var builder = new ConfigurationBuilder() - .SetBasePath(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location)) + .SetBasePath(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location)) .AddJsonFile(path); Configuration = builder.Build(); diff --git a/iwa-console/MyInformation.cs b/iwa-console/MyInformation.cs index b76c8cf..8c189a5 100644 --- a/iwa-console/MyInformation.cs +++ b/iwa-console/MyInformation.cs @@ -37,7 +37,7 @@ public MyInformation(IPublicClientApplication app, HttpClient client, string mic { tokenAcquisitionHelper = new PublicAppUsingIntegratedWindowsAuthentication(app); protectedApiCallHelper = new ProtectedApiCallHelper(client); - this.MicrosoftGraphBaseEndpoint = microsoftGraphBaseEndpoint; + MicrosoftGraphBaseEndpoint = microsoftGraphBaseEndpoint; } protected PublicAppUsingIntegratedWindowsAuthentication tokenAcquisitionHelper; diff --git a/iwa-console/PublicAppUsingIntegratedWindowsAuthentication.cs b/iwa-console/PublicAppUsingIntegratedWindowsAuthentication.cs index 601caff..722aa9f 100644 --- a/iwa-console/PublicAppUsingIntegratedWindowsAuthentication.cs +++ b/iwa-console/PublicAppUsingIntegratedWindowsAuthentication.cs @@ -87,7 +87,7 @@ public async Task AcquireATokenFromCacheOrIntegratedWindow /// An authentication result, or null if the user canceled sign-in private async Task GetTokenForWebApiUsingIntegratedWindowsAuthenticationAsync(IEnumerable scopes) { - AuthenticationResult result=null; + AuthenticationResult result; try { result = await App.AcquireTokenByIntegratedWindowsAuth(scopes)