Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick fix for adding event handler does work in Blazor component #11524

Open
vsfeedback opened this issue Feb 20, 2025 · 0 comments
Open

Quick fix for adding event handler does work in Blazor component #11524

vsfeedback opened this issue Feb 20, 2025 · 0 comments
Labels
author: migration bot 🤖 The issue was created by a issue mover bot. The author may not be the actual author
Milestone

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


[severity:It bothers me. A fix would be nice]
When adding an event handler for a timer, there is no quick fix shown to create the missing new handler. In the example below, I add an additional event handler XX:

protected override void OnInitialized()
{
AuthStateProvider.AuthenticationStateChanged += OnAuthenticationStateChanged;

 _timer = new System.Timers.Timer(1000); // Set the interval to 1 second (1000 ms)
 _timer.Elapsed += OnTimerElapsed;
 _timer.AutoReset = true;
 _timer.Enabled = true;
 _timer.Elapsed += XX;

}

but when I do Ctrl . nothing happens. I should suggest creating another handler named XX.


Original Comments

Feedback Bot on 2/19/2025, 05:48 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

@dotnet-policy-service dotnet-policy-service bot added untriaged author: migration bot 🤖 The issue was created by a issue mover bot. The author may not be the actual author labels Feb 20, 2025
@phil-allen-msft phil-allen-msft added this to the Backlog milestone Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author: migration bot 🤖 The issue was created by a issue mover bot. The author may not be the actual author
Projects
None yet
Development

No branches or pull requests

2 participants