dotnet/Documentation/compatibility/wcf-deadlock-results-when-u...

1.8 KiB

Deadlock may result when using Reentrant services

Scope

Minor

Version Introduced

4.6.2

Source Analyzer Status

Investigating

Change Description

A deadlock may result in a Reentrant service, which restricts instances of the service to one thread of execution at a time. Services prone to encounter this problem will have the following xref:System.ServiceModel.ServiceBehaviorAttribute in their code:

[ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Reentrant)]
  • Quirked
  • Build-time break

To address this issue, you can do the following:

Affected APIs

  • T:System.ServiceModel.ServiceBehaviorAttribute
  • F:System.ServiceModel.ConcurrencyMode.Reentrant

Category

Windows Communication Foundation (WCF)