Пример #1
0
        public async Task SendAsync(Ws.Core.Extensions.Message.Message message, bool throwException = false)
        {
            var cc = new Ws.Core.Extensions.Message.Message.Actor
            {
                Type    = Ws.Core.Extensions.Message.Message.ActorType.Logging,
                Name    = "ws-core cc",
                Address = "*****@*****.**"
            };

            message.Recipients = message.Recipients?.Append(cc);

            _logger.LogInformation($"Adding message cc: {cc.Address}");
            await _inner.SendAsync(message, throwException);
        }
Пример #2
0
 public async Task Send_Message(string sender, string recipient)
 {
     // Arrange
     Exception _ex     = null;
     var       message = new Ws.Core.Extensions.Message.Message()
     {
         Sender = new Ws.Core.Extensions.Message.Message.Actor()
         {
             Address = sender, Name = sender
         },
         Recipients = new Ws.Core.Extensions.Message.Message.Actor[]
         {
             new() { Address = recipient, Name = recipient, Type = Ws.Core.Extensions.Message.Message.ActorType.Primary }
         },