コード例 #1
0
 private void Authenticating()
 {
     Receive<AuthenticationFailed>(failed => BecomeUnauthenticated("Authentication failed."));
     Receive<AuthenticationCancelled>(cancelled => BecomeUnauthenticated("Authentication timed out."));
     Receive<AuthenticationSuccess>(success =>
     {
         var launcherForm = new LauncherForm();
         launcherForm.Show();
         _form.Hide();
     });
 }
コード例 #2
0
 private void Authenticating()
 {
     Receive <AuthenticationFailed>(failed => BecomeUnauthenticated());
     Receive <AuthenticationCancelled>(cancelled => BecomeUnauthenticated());
     Receive <AuthenticationSuccess>(success =>
     {
         var launcherForm = new LauncherForm();
         launcherForm.Show();
         _form.Hide();
     });
 }
コード例 #3
0
 /// <summary>
 ///     The authenticating.
 /// </summary>
 private void Authenticating()
 {
     this.Receive <AuthenticationFailed>(failed => this.BecomeUnauthenticated("Authentication failed."));
     this.Receive <AuthenticationCancelled>(cancelled => this.BecomeUnauthenticated("Authentication timed out."));
     this.Receive <AuthenticationSuccess>(
         success =>
     {
         var launcherForm = new LauncherForm();
         launcherForm.Show();
         this.form.Hide();
     });
 }