public IMessagesContext GetMessagesContext()
 {
     if (_messageContext == null)
     {
         _messageContext = SelectMessageContext();
     }
     return(_messageContext);
 }
 public static IApiResponseContextDto <TOut> AttachResult <TOut>(this IApiResponseContextDto <TOut> response, IMessagesContext context)
 {
     context.Messages.AddRange(response.Messages);
     return(response);
 }
Пример #3
0
 public MessagesManager(IMessagesContextAccessor messagesContextAccessor)
 {
     _messagesContext = messagesContextAccessor.GetMessagesContext();
 }
 public MessageController(IMessagesContext context)
 {
     db = context;
 }