public override Task<ApiResult> AddDatapoint(DatapointMessage request, ServerCallContext context) { var nodeId = new NodeId(2, request.Identifier); if (_serverApplication.HasDatapoint(nodeId)) { return Task.FromResult(new ApiResult() { ResultCode = ResultCode.Error, Message = "Datapoint already exists" }); } _serverApplication.AddDatapoint(nodeId, request.Value); return Task.FromResult(new ApiResult() { ResultCode = ResultCode.Success, Message = "Datapoint has been added" }); }