Example #1
0
 /// <summary>
 /// Closes the specified item.
 /// </summary>
 /// <param name="conductor">The conductor.</param>
 /// <param name="item">The item to close.</param>
 public static Task CloseItem <T>(this ConductorBase <T> conductor, T item, CancellationToken cancellationToken = default(CancellationToken)) where T : class
 {
     return(conductor.DeactivateItem(item, true, cancellationToken));
 }
Example #2
0
 /// <summary>
 /// Closes the specified item.
 /// </summary>
 /// <param name="conductor">The conductor.</param>
 /// <param name="item">The item to close.</param>
 public static void CloseItem <T>(this ConductorBase <T> conductor, T item)
 {
     conductor.DeactivateItem(item, true);
 }
 /// <summary>
 /// Closes the specified item.
 /// </summary>
 /// <param name="conductor">The conductor.</param>
 /// <param name="item">The item to close.</param>
 /// <returns>A task that represents the asynchronous operation.</returns>
 public static Task CloseItemAsync <T>(this ConductorBase <T> conductor, T item) where T : class
 {
     return(conductor.DeactivateItemAsync(item, true, CancellationToken.None));
 }