Class BaseDataModelExtensions
Class holding data model extension methods
Inheritance
System.Object
BaseDataModelExtensions
Namespace: PnP.Core.QueryModel
Assembly: PnP.Core.dll
Syntax
public static class BaseDataModelExtensions : object
Methods
AndThen<TIn, TOut>(Task<TIn>, Func<TIn, Task<TOut>>)
Chains async calls. See https://stackoverflow.com/a/52739551 for more information
Declaration
public static async Task<TOut> AndThen<TIn, TOut>(this Task<TIn> inputTask, Func<TIn, Task<TOut>> mapping)
Parameters
Task<TIn>
inputTask
Async operatation to start from |
Func<TIn, Task<TOut>>
mapping
Async operation to run next |
Returns
Task<TOut>
Task outcome from the ran async operation |
Type Parameters
TIn
Input task |
TOut
Output task |