Microsoft.Bot.Builder.Internals.Fibers.IScope< T > Interface Template Reference

Provide an abstraction to serialize access to an item for a using-block scope of code. More...

Inheritance diagram for Microsoft.Bot.Builder.Internals.Fibers.IScope< T >:

Public Member Functions

Task< IDisposable > WithScopeAsync (T item, CancellationToken token)
 Enter a scope of code keyed by item. More...
 

Detailed Description

Provide an abstraction to serialize access to an item for a using-block scope of code.

Template Parameters
TThe item type.

Definition at line 47 of file Scope.cs.

Member Function Documentation

Task<IDisposable> Microsoft.Bot.Builder.Internals.Fibers.IScope< T >.WithScopeAsync ( item,
CancellationToken  token 
)

Enter a scope of code keyed by item.

Parameters
itemThe item.
tokenThe cancellation token.
Returns
A task whose completion produces an IDisposable for the scope.

The documentation for this interface was generated from the following file: