public Task <SnapshotStatusResponse> StatusAsync(Action <SnapshotStatusRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default) { var descriptor = new SnapshotStatusRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequestAsync <SnapshotStatusRequestDescriptor, SnapshotStatusResponse>(descriptor)); }
public SnapshotStatusResponse Status(Action <SnapshotStatusRequestDescriptor> configureRequest = null) { var descriptor = new SnapshotStatusRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequest <SnapshotStatusRequestDescriptor, SnapshotStatusResponse>(descriptor)); }