Skip to content

MessageBus.Dispose spins on Interlocked.Exchange(ref _gcRunning, 1) == 1 #1088

@deanward81

Description

@deanward81

Hosted in ASP.NET, .NET 4.5. Initiating shutdown of the app domain spins on the while loop starting on line 234 of MessageBus.cs.

It would appear that _gcRunning is always 1 during the Dispose method. The Timer seems to have been disabled, although it isn't disposed until later in the Dispose method. Stepping out of the while loop allows the Dispose to complete successfully

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions