Exemplo n.º 1
0
        private void OnPutRecordResult(Message message)
        {
            var future = this.GetFuture(message);
            var result = UserRecordResult.FromProtobufMessage(message.PutRecordResult);

            if (result.Successful)
            {
                future.LeftOrDefault?.SetResult(result);
            }
            else
            {
                future.LeftOrDefault?.SetException(new UserRecordFailedException(result));
            }
        }
 public UserRecordFailedException(UserRecordResult result)
 {
     Result = result;
 }