Skip to content

Comments

1.1.0#26

Merged
brandochn merged 5 commits intomainfrom
1.1.0
Feb 18, 2026
Merged

1.1.0#26
brandochn merged 5 commits intomainfrom
1.1.0

Conversation

@brandochn
Copy link
Owner

This pull request introduces several improvements and updates across the codebase, focusing on .NET 10 migration, event filtering logic, UI enhancements, and build automation. The most significant changes include updating all projects to target .NET 10, refining how profiler events are filtered and uniquely identified, improving the WinForms UI code for better performance and maintainability, and adding new build tasks for streamlined publishing.

.NET 10 Migration and Versioning:

  • All project files (.csproj) are updated to target .NET 10 (net10.0 or net10.0-windows), ensuring compatibility with the latest framework features and APIs. The WinForms app version is also incremented to 1.1.0. [1] [2] [3] [4]

Profiler Event Filtering and Identification:

  • The ProfilerEvent model's GetEventKey method is improved to generate a more reliable unique key based on event sequence, activity ID, or a fallback combination, enhancing event deduplication.
  • The filtering logic in ProfilerService is refactored with a new IsProfilerGeneratedEvent method for more robust and readable filtering of profiler-generated events.

WinForms UI Enhancements:

  • Refactors in MainPresenter.cs include using collection initializers (e.g., []) for cleaner code, extracting constants, and improving filter logic for better performance.
  • The event polling logic is made more robust and responsive, with improved cancellation handling and UI updates now performed on the UI thread for thread safety. (Fbf94f20L23R23, [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

Build and Publishing Automation:

  • New VSCode tasks are added for cleaning and publishing the WinForms app, streamlining the build and deployment process for Windows targets.

Testing Improvements:

  • The test project is updated to .NET 10 and now includes the Moq library for more advanced unit testing capabilities. [1] [2]

Implement ProfilerEvent.GetEventKey using event_sequence,
attach_activity_id and a timestamp/name/session fallback.
Add ProfilerService.IsProfilerGeneratedEvent to filter profiler-origin
events (client_app_name, batch_text, statement). Introduce
EventsPollingIntervalMs constant, add unit/integration tests and Moq
test dependency
@brandochn brandochn merged commit d302bb4 into main Feb 18, 2026
1 check passed
@brandochn brandochn deleted the 1.1.0 branch February 18, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant