Deli z drugimi prek


IAsyncContext<T>.Get Method

Definition

Gets current async context.

public:
 T Get();
public T? Get ();
abstract member Get : unit -> 'T
Public Function Get () As T

Returns

T

Current async context.

Exceptions

Context is not initialized.

Remarks

If you are getting an exception that context is not initialized, make sure that you initialized it before usage in your framework. Also check if you are accessing the context from the current asynchronous flow, starting with context initialization.

Applies to