Class ConcurrentContextAccessException
Thrown when a context is being accessed by multiple threads concurrently.
public sealed class ConcurrentContextAccessException : Exception, ISerializable
- Inheritance
-
ConcurrentContextAccessException
- Implements
- Inherited Members
Remarks
EntityContext is not thread-safe for concurrent modifications. Each context should be accessed by only one thread at a time. Multiple async stacks on the same thread are allowed because the non-thread-safe operations don't span await points.
Constructors
ConcurrentContextAccessException(string)
Thrown when a context is being accessed by multiple threads concurrently.
public ConcurrentContextAccessException(string message)
Parameters
messagestring
Remarks
EntityContext is not thread-safe for concurrent modifications. Each context should be accessed by only one thread at a time. Multiple async stacks on the same thread are allowed because the non-thread-safe operations don't span await points.