コード例 #1
0
        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));
        }
コード例 #2
0
        public ClusterRemoteInfoResponse RemoteInfo(Action <ClusterRemoteInfoRequestDescriptor> configureRequest = null)
        {
            var descriptor = new ClusterRemoteInfoRequestDescriptor();

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <ClusterRemoteInfoRequestDescriptor, ClusterRemoteInfoResponse>(descriptor));
        }