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(); }); }
private void Authenticating() { Receive <AuthenticationFailed>(failed => BecomeUnauthenticated()); Receive <AuthenticationCancelled>(cancelled => BecomeUnauthenticated()); Receive <AuthenticationSuccess>(success => { var launcherForm = new LauncherForm(); launcherForm.Show(); _form.Hide(); }); }
/// <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(); }); }