Exemple #1
0
 public ChatManager(IChatStore chatStore, IChatParticipantStore chatParticipantStore, IMTObjectFactory objectFactory, IMTServiceProvider serviceProvider)
 {
     this.chatStore       = chatStore;
     this.chatParticipant = chatParticipantStore;
     this.objectFactory   = objectFactory;
     this.serviceProvider = serviceProvider;
 }
Exemple #2
0
 protected ChatsWorker(TChatWorkersConfiguration chatWorkersConfiguration, IChatsPermissionValidator <TPersonalizedChatCollection, TPersonalizedChat, TChat, TChatInfo, TChatParticipantCollection, TChatParticipant, TChatUser, TChatMessageInfo, TTextMessage, TQuoteMessage, TMessageAttachmentCollection, TMessageAttachment, TChatRefMessageCollection, TChatRefMessage, TContactMessageCollection, TContactMessage,
                                                                                                      TChatFilter, TChatUserFilter, TMessageFilter, TPagedResult, TPagingOptions> chatsPermissionValidator,
                       IChatStore <TChatsSummary, TPersonalizedChatCollection, TPersonalizedChat, TChat, TChatInfo, TChatParticipantCollection, TChatParticipant, TParticipationCandidateCollection, TParticipationCandidate, TChatUser, TChatMessage, TChatMessageInfo, TTextMessage, TQuoteMessage, TMessageAttachmentCollection, TMessageAttachment, TChatRefMessageCollection, TChatRefMessage, TContactMessageCollection, TContactMessage, TChatFilter, TChatUserFilter, TMessageFilter, TPagedResult, TPagingOptions> chatStore, IChatsEventBuilder <TChat, TChatInfo, TChatParticipantCollection, TChatParticipant, TChatUser, TChatMessageInfo, TTextMessage, TQuoteMessage, TMessageAttachmentCollection, TMessageAttachment, TChatRefMessageCollection, TChatRefMessage, TContactMessageCollection, TContactMessage> chatsEventBuilder) : base(chatWorkersConfiguration)
 {
     ChatsPermissionValidator = chatsPermissionValidator;
     ChatStore         = chatStore;
     ChatsEventBuilder = chatsEventBuilder;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ChatManager" /> class
        /// </summary>
        /// <param name="store">The cache that the <see cref="ChatManager" /> operates against.</param>
        public ChatManager(IChatStore store)
        {
            if (store == null)
            {
                throw new ArgumentNullException(nameof(store));
            }

            Store = store;
        }
Exemple #4
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="store">the store</param>
        public ChatManager(IChatStore <TKey, TUser, TConversation, TAttendee, TMessage, TNotificationConnection> store, IOptions <ChatOptions> optionsAccessor, ILoggerFactory loggerFactory = null)
        {
            if (store == null)
            {
                throw new ArgumentNullException("store");
            }
            if (optionsAccessor == null || optionsAccessor.Value == null)
            {
                throw new ArgumentNullException("optionsAccessor");
            }

            Store   = store;
            Options = optionsAccessor.Value;
            if (loggerFactory != null)
            {
                _logger = loggerFactory.CreateLogger("ChatLe.Models.ChatManager");
            }
            else
            {
                _logger = new FakeLogger();
            }
        }
Exemple #5
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="store">a chat store</param>
 public ChatManager(IChatStore <string, ChatLeUser, Conversation, Attendee, Message, NotificationConnection> store, IOptions <ChatOptions> options, ILoggerFactory loggerFactory = null)
     : base(store, options, loggerFactory)
 {
 }
Exemple #6
0
 public ChatsWorker(ChatWorkersConfiguration chatWorkersConfiguration, IChatsPermissionValidator <List <PersonalizedChat>, PersonalizedChat, Chat, ChatInfo, List <ChatParticipant>, ChatParticipant, ChatUser, ChatMessageInfo, TextMessage, QuoteMessage, List <MessageAttachment>, MessageAttachment, List <ChatRefMessage>, ChatRefMessage, List <ContactMessage>, ContactMessage, ChatFilter <ChatUserFilter, MessageFilter>, ChatUserFilter, MessageFilter, PagedResult <List <PersonalizedChat>, PersonalizedChat>, PagingOptions> chatsPermissionValidator,
                    IChatStore <PersonalizedChatsSummary, List <PersonalizedChat>, PersonalizedChat, Chat, ChatInfo, List <ChatParticipant>, ChatParticipant, List <ParticipationCandidate>, ParticipationCandidate, ChatUser, ChatMessage, ChatMessageInfo, TextMessage, QuoteMessage, List <MessageAttachment>, MessageAttachment, List <ChatRefMessage>, ChatRefMessage, List <ContactMessage>, ContactMessage, ChatFilter <ChatUserFilter, MessageFilter>, ChatUserFilter, MessageFilter, PagedResult <List <PersonalizedChat>, PersonalizedChat>, PagingOptions> chatStore,
                    IChatsEventBuilder <Chat, ChatInfo, List <ChatParticipant>, ChatParticipant, ChatUser, ChatMessageInfo, TextMessage, QuoteMessage, List <MessageAttachment>, MessageAttachment, List <ChatRefMessage>, ChatRefMessage, List <ContactMessage>, ContactMessage> chatsEventBuilder) : base(chatWorkersConfiguration, chatsPermissionValidator, chatStore, chatsEventBuilder)
 {
 }
 public MessageController(IChatStore chatStore, ApplicationDbContext databaseContext) : base(databaseContext)
 {
     _chatStore = chatStore;
 }
Exemple #8
0
 public ChatHub(IChatStore chatStore)
 {
     _chatStore = chatStore;
 }