Пример #1
0
 ValueTask <TResult> IDataTransferObject.TransformAsync <TResult, TTransformation>(TTransformation transformation, CancellationToken token)
 => IDataTransferObject.TransformAsync <TResult, TTransformation>(requestStream, transformation, false, token);
Пример #2
0
 ValueTask <TResult> IDataTransferObject.TransformAsync <TResult, TTransformation>(TTransformation transformation, CancellationToken token)
 => IDataTransferObject.TransformAsync <TResult, TTransformation>(reader, transformation, token);
Пример #3
0
 /// <summary>
 /// Parses the encapsulated stream.
 /// </summary>
 /// <param name="transformation">The parser instance.</param>
 /// <param name="token">The token that can be used to cancel the operation.</param>
 /// <typeparam name="TResult">The type of result.</typeparam>
 /// <typeparam name="TTransformation">The type of parser.</typeparam>
 /// <returns>The converted DTO content.</returns>
 /// <exception cref="OperationCanceledException">The operation has been canceled.</exception>
 public ValueTask <TResult> TransformAsync <TResult, TTransformation>(TTransformation transformation, CancellationToken token = default)
     where TTransformation : IDataTransferObject.ITransformation <TResult>
 => IDataTransferObject.TransformAsync <TResult, TTransformation>(content, transformation, IsReusable, token);