Exemplo n.º 1
0
        /// <summary>
        /// Gets the configured name of this node.
        /// </summary>
        /// <returns>The name of this node</returns>
        public async Task <string> GetNodeIdentifierAsync()
        {
            NodeIdentifierResponseData response =
                await ExecuteAtQueryAsync <NodeIdentifierResponseData>(new NodeIdentifierCommand());

            return(response.Id);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Gets the configured name of this node.
        /// </summary>
        /// <returns>The name of this node</returns>
        public async Task <string> GetNodeIdentifierAsync()
        {
            NodeIdentifierResponseData response =
                await ExecuteAtQueryAsync <NodeIdentifierResponseData>(new NodeIdentifierCommand());

            var id = response.Id;

            return(id?.Replace("/0", string.Empty));
        }