Skip to content

Add Windows Service support to the MassTransit Connector host#343

Open
Copilot wants to merge 1 commit intomasterfrom
copilot/fix-issue-254
Open

Add Windows Service support to the MassTransit Connector host#343
Copilot wants to merge 1 commit intomasterfrom
copilot/fix-issue-254

Conversation

Copy link

Copilot AI commented Mar 11, 2026

Closes #254

  • Add Microsoft.Extensions.Hosting.WindowsServices (9.0.14) package to Host project
  • In StartupCommand.InternalHandler, call builder.Services.AddWindowsService() — a no-op when run interactively, but when running as a Windows Service it registers WindowsServiceLifetime and automatically sets up EventLog logging
  • Guard AddSystemdConsole() with !WindowsServiceHelpers.IsWindowsService() so Windows Service mode uses only the EventLog provider set up by AddWindowsService(), not systemd-format console output
  • Rebased: incorporated master changes (Microsoft.Extensions.Hosting → 9.0.14, Microsoft.Extensions.Hosting.WindowsServices → 9.0.14, MassTransit.Azure.ServiceBus.Core → 8.5.8)

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Fix issue 254 in ServiceControl.Connector.MassTransit Add Windows Service support to the MassTransit Connector host Mar 11, 2026
@Particular Particular deleted a comment from Copilot AI Mar 11, 2026
@danielmarbach
Copy link
Contributor

@copilot rebase

Copy link
Author

Copilot AI commented Mar 11, 2026

@copilot rebase

Done in ebbf79b — incorporated master's changes: Microsoft.Extensions.Hosting → 9.0.14, Microsoft.Extensions.Hosting.WindowsServices → 9.0.14, MassTransit.Azure.ServiceBus.Core → 8.5.8.

@danielmarbach danielmarbach force-pushed the copilot/fix-issue-254 branch 2 times, most recently from aef66cd to 56c64ef Compare March 11, 2026 07:18
@danielmarbach danielmarbach marked this pull request as ready for review March 11, 2026 07:44
@danielmarbach
Copy link
Contributor

Will probably require a rebase after #259 is merged

Co-authored-by: danielmarbach <174258+danielmarbach@users.noreply.github.com>
@danielmarbach danielmarbach force-pushed the copilot/fix-issue-254 branch from 56c64ef to 61898f1 Compare March 11, 2026 07:51
@danielmarbach
Copy link
Contributor

Rebased

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.

Add the ability to run the MassTransit Connector as a Windows Service

2 participants