You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support static AtataContext mode. Currently AtataContext.Current uses [ThreadStatic] backing field.
Add property to AtataContext with default true value:
publicstaticboolIsThreadStatic{get;set;}
Thread-static mode - AtataContext.Current uses thread-static (unique for each thread) value. Is good for environment with parallel test execution.
Static mode - AtataContext.Current uses static (common for all threads) value. Is good for environment with asynchronous actions, but without parallel test execution.
Usage
If you need to enable static mode, in one-time set up method set the following:
Support static
AtataContext
mode. CurrentlyAtataContext.Current
uses[ThreadStatic]
backing field.Add property to
AtataContext
with defaulttrue
value:Thread-static mode -
AtataContext.Current
uses thread-static (unique for each thread) value. Is good for environment with parallel test execution.Static mode -
AtataContext.Current
uses static (common for all threads) value. Is good for environment with asynchronous actions, but without parallel test execution.Usage
If you need to enable static mode, in one-time set up method set the following:
The text was updated successfully, but these errors were encountered: