public Task <ClusterRemoteInfoResponse> RemoteInfoAsync(Action <ClusterRemoteInfoRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default) { var descriptor = new ClusterRemoteInfoRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequestAsync <ClusterRemoteInfoRequestDescriptor, ClusterRemoteInfoResponse>(descriptor)); }
public ClusterRemoteInfoResponse RemoteInfo(Action <ClusterRemoteInfoRequestDescriptor> configureRequest = null) { var descriptor = new ClusterRemoteInfoRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequest <ClusterRemoteInfoRequestDescriptor, ClusterRemoteInfoResponse>(descriptor)); }