IAsyncContext<T>.Set(T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets async context.
public:
void Set(T context);
public void Set (T? context);
abstract member Set : 'T -> unit
Public Sub Set (context As T)
Parameters
- context
- T
Context to be set.
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
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.