コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WaitingDictionary{TKey,TValue}"/> class.
 /// </summary>
 /// <param name="middlewareBuilder">Middleware builder using it to add some logic to the Wait or Set methods</param>
 /// <param name="creationOptions">Specifies flags that control optional behavior for the creation and execution of tasks</param>
 public WaitingDictionary(MiddlewareBuilder <TValue> middlewareBuilder, TaskCreationOptions creationOptions) : this()
 {
     _middleware      = middlewareBuilder;
     _creationOptions = creationOptions;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WaitingDictionary{TKey,TValue}"/> class.
 /// </summary>
 /// <param name="middlewareBuilder">Middleware builder using it to add some logic to the Wait or Set methods</param>
 public WaitingDictionary(MiddlewareBuilder <TValue> middlewareBuilder) : this()
 {
     _middleware = middlewareBuilder;
 }