using System.Collections.Generic; using System.Threading; using MfGames.Gallium; namespace MfGames.Nitride; /// /// Extension methods to run a Nitride operation inline with code. /// public static class NitrideOperationExtensions { /// /// Runs the given configured operation against the input and returns /// the results. /// /// The entities to perform the operation against. /// The operation to run. /// The cancellation token of the request. /// The results of the operation. public static IEnumerable Run( this IEnumerable input, IOperation operation, CancellationToken cancellationToken = default) { return operation.Run(input, cancellationToken); } }