IAsyncContext<T>.Get 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.
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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET