예제 #1
0
            public SendResult ToRealSendResult()
            {
                var result = new SendResult { Success = _success };

                if (_sentBatches != null)
                {
                    result.SentBatches = _sentBatches.Select(x => x.AsReadOnly()).ToList().AsReadOnly();
                }

                if (_failedBatches != null)
                {
                    result.FailedBatches = _failedBatches.Select(x => x.AsReadOnly()).ToList().AsReadOnly();
                }

                return result;
            }