/// <summary> /// Closes the specified item. /// </summary> /// <param name="conductor">The conductor.</param> /// <param name="item">The item to close.</param> public static void CloseItem(this IConductor conductor, object 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> /// <param name="cancellationToken"></param> public static Task CloseItem(this IConductor conductor, object item, CancellationToken cancellationToken = default(CancellationToken)) { return(conductor.DeactivateItem(item, true, cancellationToken)); }