Exemple #1
0
        public static void Main(string[] args)
        {
            PublicClientApplication pca = new PublicClientApplication(
                ClientIdForPublicApp,
                Authority,
                TokenCacheHelper.GetUserCache()); // token cache serialization https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/token-cache-serialization

            Logger.LogCallback       = Log;
            Logger.Level             = LogLevel.Verbose;
            Logger.PiiLoggingEnabled = true;

            RunConsoleAppLogicAsync(pca).Wait();
        }
Exemple #2
0
        public static void Main(string[] args)
        {
            PublicClientApplication pca = new PublicClientApplication(
                ClientIdForPublicApp,
                Authority,
                TokenCacheHelper.GetUserCache()); // token cache serialization https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/token-cache-serialization

            Logger.LogCallback       = Log;
            Logger.Level             = LogLevel.Verbose;
            Logger.PiiLoggingEnabled = true;
#if ARIA_TELEMETRY_ENABLED
            Telemetry.GetInstance().RegisterReceiver(
                (new Microsoft.Identity.Client.AriaTelemetryProvider.ServerTelemetryHandler()).OnEvents);
#endif
            RunConsoleAppLogicAsync(pca).Wait();
        }