public Task <IngestSimulateResponse> SimulateAsync(Action <IngestSimulateRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default) { var descriptor = new IngestSimulateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequestAsync <IngestSimulateRequestDescriptor, IngestSimulateResponse>(descriptor)); }
public IngestSimulateResponse Simulate(Action <IngestSimulateRequestDescriptor> configureRequest = null) { var descriptor = new IngestSimulateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequest <IngestSimulateRequestDescriptor, IngestSimulateResponse>(descriptor)); }