Example #1
0
        /// <summary>
        /// Tries the native authentication.
        /// </summary>
        private static void TryNativeAuthentication()
        {
            FxLog <AuthenticationHost> .InfoFormat("Trying Native Authentication");

            Messenger.Default.Send(new NavigateMvvmMessage()
            {
                Header   = LoginView.HEADER,
                ViewName = LoginView.ID
            });
        }
Example #2
0
        /// <summary>
        /// Starts the session.
        /// </summary>
        /// <param name="loginCompletedAction">The login completed action.</param>
        /// <param name="canceledAction"></param>
        /// <param name="loginCanceledAction">The login canceled action.</param>
        public static void StartSessionAsync(Action loginCompletedAction = null,
                                             Action loginCanceledAction  = null)
        {
            _loginCompletedAction = loginCompletedAction;
            _loginCanceledAction  = loginCanceledAction;

            if ((WulkaSession.Current != null) && (!WulkaSession.Current.IsDefaultSession))
            {
                return;
            }
            FxLog <AuthenticationHost> .InfoFormat("****************************");

            FxLog <AuthenticationHost> .InfoFormat("*     Starting Session     *");

            FxLog <AuthenticationHost> .InfoFormat("****************************");

            if (WulkaSession.Current != null)
            {
                FxLog <AuthenticationHost> .InfoFormat("Starting Session {0}", WulkaSession.Current.Id);
            }
            // By Default, we try to authenticate the user using Windows Authentication
            //TryWindowsAuthenticationAsync();
            TryNativeAuthentication();
        }
Example #3
0
 public void Try_InfoLogging()
 {
     FxLog <DomainTestFixture> .InfoFormat("This is an Info message.");
 }