Beispiel #1
0
        public void Send(string message)
        {
            if (string.IsNullOrEmpty(message))
            {
                throw new ArgumentNullException(nameof(message));
            }

            var queueElement = new Queue
            {
                Body        = message,
                Created     = _timeService.GetUtc(),
                IsProcessed = false,
                Processed   = null,
                Type        = _key.ToString()
            };

            _queueRepository.Insert(queueElement);
        }