Пример #1
0
 /// <summary>
 /// Initializes the ViewModel the first time it is called.
 /// This method will be called from the View that implements the
 /// ViewModel
 /// </summary>
 /// <param name="parameters">The parameters used to initialize the ViewModel</param>
 protected override void InitializeInternal(object[] parameters)
 {
     DevExpress.Xpf.Core.DXSplashScreen.Close();
     AuthenticationHost.WaitInfo = new GetMenuWaitInfo();
     AuthenticationHost.StartSessionAsync(GetUserEnvironmentInfo);
     FeedbackText = "Welcome, Please sign in or register to continue.";
 }
Пример #2
0
 public void LogonLogoff()
 {
     if (WulkaSession.Current.IsDefaultSession)
     {
         AuthenticationHost.StartSessionAsync(GetUserEnvironmentInfo);
     }
     else
     {
         AuthenticationHost.TerminateSessionAsync(OnTerminateSessionCompleted);
     }
 }
Пример #3
0
 /// <summary>
 /// Starts the session asynchronous.
 /// </summary>
 /// <param name="act">The act.</param>
 void StartSessionAsync(Action act)
 {
     AuthenticationHost.StartSessionAsync(loginCompletedAction: act);
 }
Пример #4
0
 /// <summary>
 /// Starts the session async.
 /// </summary>
 /// <param name="act">The act.</param>
 /// <param name="cancelAction">The cancel action.</param>
 void StartSessionAsync(Action act, Action cancelAction = null)
 {
     AuthenticationHost.StartSessionAsync(act, cancelAction);
 }