public Task <TransformPreviewTransformResponse <TTransform> > TransformPreviewTransformAsync <TTransform>(Action <TransformPreviewTransformRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default) { var descriptor = new TransformPreviewTransformRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequestAsync <TransformPreviewTransformRequestDescriptor, TransformPreviewTransformResponse <TTransform> >(descriptor)); }
public TransformPreviewTransformResponse <TTransform> TransformPreviewTransform <TTransform>(Action <TransformPreviewTransformRequestDescriptor> configureRequest = null) { var descriptor = new TransformPreviewTransformRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequest <TransformPreviewTransformRequestDescriptor, TransformPreviewTransformResponse <TTransform> >(descriptor)); }