Example #1
0
 public async Task AddBadRequest(string message)
 {
     DomainManagerMessage domainMessage = new DomainManagerMessage("", message, DomainManagerMessageType.BadRequest);
     await Task.Run(() => { _messages.Add(domainMessage); });
 }
Example #2
0
 public async Task AddForbidden(string message)
 {
     DomainManagerMessage domainMessage = new DomainManagerMessage("", message, DomainManagerMessageType.Unauthorized);
     await Task.Run(() => { _messages.Add(domainMessage); });
 }
Example #3
0
 public async Task AddNotFound(string message)
 {
     DomainManagerMessage domainMessage = new DomainManagerMessage("", message, DomainManagerMessageType.NotFound);
     await Task.Run(() => { _messages.Add(domainMessage); });
 }