private void CreateServices(Microsoft.Identity.Client.IPlatformParameters platformParameters)
        {
            AuthenticationService = UseMSAL ? new AuthenticationHelperMSAL(platformParameters) as IAuthenticationService
                                            : new AuthenticationHelper(_logger, AuthorizationCode);

            GraphService = UseHttp ? new HttpGraphService(AuthenticationService, _logger) as IGraphService
                           : new SDKGraphService(AuthenticationService, _logger);
        }
        internal async void InitializeApp(string authCode, Microsoft.Identity.Client.IPlatformParameters platformParameters = null)
        {
            AuthorizationCode = authCode;

            CreateServices(platformParameters);

            var user = await App.Me.GraphService.GetUser();

            if (user != null)
            {
                UserId = user.UserPrincipalName;

                await PushAsync("Calendar");
            }
        }