/// <summary> /// Gets a database routine. This will always be a 'none' result. /// </summary> /// <param name="routineName">A database routine name.</param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns>A database routine in the 'none' state.</returns> /// <exception cref="ArgumentNullException"><paramref name="routineName"/> is <c>null</c>.</exception> public OptionAsync <IDatabaseRoutine> GetRoutine(Identifier routineName, CancellationToken cancellationToken = default) { if (routineName == null) { throw new ArgumentNullException(nameof(routineName)); } return(RoutineProvider.GetRoutine(routineName, cancellationToken)); }
/// <summary>Gets all database routines. This will always be an empty collection.</summary> /// <param name="cancellationToken">A cancellation token.</param> /// <returns>An empty collection of database routines.</returns> public IAsyncEnumerable <IDatabaseRoutine> GetAllRoutines(CancellationToken cancellationToken = default) { return(RoutineProvider.GetAllRoutines(cancellationToken)); }