Beispiel #1
0
 public GetConversationsUsersNodeRequestHandler(NodeRequest nodeRequest, NodeConnection nodeConnection, ILoadChannelsService loadChannelsService, ILoadChatsService loadChatsService)
 {
     this.nodeConnection      = nodeConnection;
     this.nodeRequest         = (GetConversationsUsersNodeRequest)nodeRequest;
     this.loadChatsService    = loadChatsService;
     this.loadChannelsService = loadChannelsService;
 }
Beispiel #2
0
 public LoadMessagesService(IAppServiceProvider appServiceProvider, IDbContextFactory <MessengerDbContext> contextFactory)
 {
     this.loadChatsService     = appServiceProvider.LoadChatsService;
     this.conversationsService = appServiceProvider.ConversationsService;
     this.loadChannelsService  = appServiceProvider.LoadChannelsService;
     this.loadDialogsService   = appServiceProvider.LoadDialogsService;
     this.contextFactory       = contextFactory;
 }
Beispiel #3
0
 private UsersConversationsCacheService()
 {
     loadDialogsService   = AppServiceProvider.Instance.LoadDialogsService;
     loadUsersService     = AppServiceProvider.Instance.LoadUsersService;
     loadChatsService     = AppServiceProvider.Instance.LoadChatsService;
     loadChannelsService  = AppServiceProvider.Instance.LoadChannelsService;
     conversationsService = AppServiceProvider.Instance.ConversationsService;
     repository           = new RedisUserConversationsRepository(NodeSettings.Configs.CacheServerConnection);
 }
 public NodeNoticeService(IAppServiceProvider appServiceProvider)
 {
     _connectionsService     = appServiceProvider.ConnectionsService;
     _updateMessagesService  = appServiceProvider.UpdateMessagesService;
     _loadChatsService       = appServiceProvider.LoadChatsService;
     _loadDialogsService     = appServiceProvider.LoadDialogsService;
     _loadChannelsService    = appServiceProvider.LoadChannelsService;
     _pendingMessagesService = appServiceProvider.PendingMessagesService;
     _nodesService           = appServiceProvider.NodesService;
 }
Beispiel #5
0
 public GetChatUsersRequestHandler(
     Request request, ClientConnection clientConnection, ILoadChatsService loadChatsService,
     IPrivacyService privacyService, IConnectionsService connectionsService, INodeRequestSender nodeRequestSender, ICrossNodeService crossNodeService)
 {
     this.request            = (GetChatUsersRequest)request;
     this.clientConnection   = clientConnection;
     this.loadChatsService   = loadChatsService;
     this.privacyService     = privacyService;
     this.connectionsService = connectionsService;
     this.nodeRequestSender  = nodeRequestSender;
     this.crossNodeService   = crossNodeService;
 }
 public ConversationsNoticeService(IAppServiceProvider appServiceProvider)
 {
     this.connectionsService       = appServiceProvider.ConnectionsService;
     this.nodeNoticeService        = appServiceProvider.NodeNoticeService;
     this.pushNotificationsService = appServiceProvider.PushNotificationsService;
     this.loadChatsService         = appServiceProvider.LoadChatsService;
     this.loadChannelsService      = appServiceProvider.LoadChannelsService;
     this.loadDialogsService       = appServiceProvider.LoadDialogsService;
     this.pendingMessagesService   = appServiceProvider.PendingMessagesService;
     this.loadUsersService         = appServiceProvider.LoadUsersService;
     this.privacyService           = appServiceProvider.PrivacyService;
 }
 public AttachmentsService(IAppServiceProvider appServiceProvider, IDbContextFactory <MessengerDbContext> contextFactory)
 {
     _createMessagesService = appServiceProvider.CreateMessagesService;
     _loadMessagesService   = appServiceProvider.LoadMessagesService;
     _loadDialogsService    = appServiceProvider.LoadDialogsService;
     _filesService          = appServiceProvider.FilesService;
     _pollsService          = appServiceProvider.PollsService;
     _nodeRequestSender     = appServiceProvider.NodeRequestSender;
     _loadChatsService      = appServiceProvider.LoadChatsService;
     _loadUsersService      = appServiceProvider.LoadUsersService;
     _connectionsService    = appServiceProvider.ConnectionsService;
     this.contextFactory    = contextFactory;
 }
Beispiel #8
0
 public SearchNodeRequestHandler(NodeRequest request,
                                 NodeConnection current,
                                 ILoadChatsService loadChatsService,
                                 ILoadUsersService loadUsersService,
                                 ILoadChannelsService loadChannelsService,
                                 IPrivacyService privacyService)
 {
     this.request             = (SearchNodeRequest)request;
     this.current             = current;
     this.loadChatsService    = loadChatsService;
     this.loadUsersService    = loadUsersService;
     this.loadChannelsService = loadChannelsService;
     this.privacyService      = privacyService;
 }
Beispiel #9
0
 public PollingRequestHandler(
     Request request,
     ClientConnection clientConnection,
     INodeNoticeService nodeNoticeService,
     ILoadChatsService loadChatsService,
     IPollsService pollsService,
     ILoadChannelsService loadChannelsService)
 {
     this.request             = (PollingRequest)request;
     this.clientConnection    = clientConnection;
     this.nodeNoticeService   = nodeNoticeService;
     this.loadChatsService    = loadChatsService;
     this.pollsService        = pollsService;
     this.loadChannelsService = loadChannelsService;
 }
Beispiel #10
0
 public MessagesDeletedNoticeHandler(
     NodeNotice notice,
     IConversationsNoticeService conversationsNoticeService,
     IDeleteMessagesService deleteMessagesService,
     ILoadChatsService loadChatsService,
     ILoadDialogsService loadDialogsService,
     ILoadChannelsService loadChannelsService)
 {
     this.notice = (MessagesDeletedNodeNotice)notice;
     this.conversationsNoticeService = conversationsNoticeService;
     this.deleteMessagesService      = deleteMessagesService;
     this.loadChatsService           = loadChatsService;
     this.loadDialogsService         = loadDialogsService;
     this.loadChannelsService        = loadChannelsService;
 }
Beispiel #11
0
 public GetObjectsInfoNodeRequestHandler(NodeRequest request,
                                         NodeConnection nodeConnection,
                                         ILoadChatsService loadChatsService,
                                         ILoadUsersService loadUsersService,
                                         ILoadChannelsService loadChannelsService,
                                         IPrivacyService privacyService,
                                         IFilesService filesService)
 {
     this.request             = (GetObjectsInfoNodeRequest)request;
     this.nodeConnection      = nodeConnection;
     this.loadChatsService    = loadChatsService;
     this.loadUsersService    = loadUsersService;
     this.loadChannelsService = loadChannelsService;
     this.privacyService      = privacyService;
     this.filesService        = filesService;
 }
 public EditChatUsersRequestHandler(
     Request request,
     ClientConnection clientConnection,
     INodeNoticeService nodeNoticeService,
     IConversationsNoticeService conversationsNoticeService,
     ILoadChatsService loadChatsService,
     IUpdateChatsService updateChatsService,
     ISystemMessagesService systemMessagesService)
 {
     this.request                    = (EditChatUsersRequest)request;
     this.clientConnection           = clientConnection;
     this.nodeNoticeService          = nodeNoticeService;
     this.conversationsNoticeService = conversationsNoticeService;
     this.loadChatsService           = loadChatsService;
     this.updateChatsService         = updateChatsService;
     this.systemMessagesService      = systemMessagesService;
 }
Beispiel #13
0
 public DeleteConversationsNoticeHandler(
     CommunicationObject @object,
     IDeleteChatsService deleteChatsService,
     ILoadChatsService loadChatsService,
     ILoadDialogsService loadDialogsService,
     IDeleteDialogsService deleteDialogsService,
     ILoadChannelsService loadChannelsService,
     IDeleteChannelsService deleteChannelsService)
 {
     notice = (DeleteConversationsNodeNotice)@object;
     this.deleteChatsService    = deleteChatsService;
     this.loadChatsService      = loadChatsService;
     this.loadDialogsService    = loadDialogsService;
     this.deleteDialogsService  = deleteDialogsService;
     this.loadChannelsService   = loadChannelsService;
     this.deleteChannelsService = deleteChannelsService;
 }
 public EditChatsNoticeHandler(
     CommunicationObject @object,
     NodeConnection nodeConnection,
     INodeNoticeService nodeNoticeService,
     IConversationsNoticeService conversationsNoticeService,
     ILoadChatsService loadChatsService,
     ICrossNodeService crossNodeService,
     ISystemMessagesService systemMessagesService)
 {
     notice = (CreateOrEditChatsNodeNotice)@object;
     this.nodeConnection             = nodeConnection;
     this.nodeNoticeService          = nodeNoticeService;
     this.conversationsNoticeService = conversationsNoticeService;
     this.loadChatsService           = loadChatsService;
     this.crossNodeService           = crossNodeService;
     this.systemMessagesService      = systemMessagesService;
 }
 public ChangeUsersChatNoticeHandler(
     NodeNotice notice,
     NodeConnection node,
     IConversationsNoticeService conversationsNoticeService,
     IUpdateChatsService updateChatsService,
     ILoadChatsService loadChatsService,
     INodeRequestSender nodeRequestSender,
     ICrossNodeService crossNodeService,
     ISystemMessagesService systemMessagesService)
 {
     this.notice = (ChangeUsersChatNodeNotice)notice;
     this.node   = node;
     this.conversationsNoticeService = conversationsNoticeService;
     this.updateChatsService         = updateChatsService;
     this.loadChatsService           = loadChatsService;
     this.nodeRequestSender          = nodeRequestSender;
     this.crossNodeService           = crossNodeService;
     this.systemMessagesService      = systemMessagesService;
 }
 public GetMessagesRequestHandler(Request request,
                                  ClientConnection clientConnection,
                                  IConnectionsService connectionsService,
                                  ILoadMessagesService loadMessagesService,
                                  ICreateMessagesService createMessagesService,
                                  IAttachmentsService attachmentsService,
                                  ILoadChatsService loadChatsService,
                                  IConversationsService conversationsService,
                                  INodeRequestSender nodeRequestSender)
 {
     this.request               = (GetMessagesRequest)request;
     this.clientConnection      = clientConnection;
     this.connectionsService    = connectionsService;
     this.loadMessagesService   = loadMessagesService;
     this.createMessagesService = createMessagesService;
     this.attachmentsService    = attachmentsService;
     this.loadChatsService      = loadChatsService;
     this.conversationsService  = conversationsService;
     this.nodeRequestSender     = nodeRequestSender;
 }
Beispiel #17
0
 public DeleteMessagesRequestHandler(
     Request request,
     ClientConnection clientConnection,
     INodeNoticeService nodeNoticeService,
     IConversationsNoticeService conversationsNoticeService,
     IDeleteMessagesService deleteMessagesService,
     ILoadChatsService loadChatsService,
     IPendingMessagesService pendingMessagesService,
     ILoadChannelsService loadChannelsService,
     ILoadDialogsService loadDialogsService)
 {
     this.request                    = (DeleteMessagesRequest)request;
     this.clientConnection           = clientConnection;
     this.nodeNoticeService          = nodeNoticeService;
     this.conversationsNoticeService = conversationsNoticeService;
     this.deleteMessagesService      = deleteMessagesService;
     this.loadChatsService           = loadChatsService;
     this.pendingMessagesService     = pendingMessagesService;
     this.loadChannelsService        = loadChannelsService;
     this.loadDialogsService         = loadDialogsService;
 }
Beispiel #18
0
 public SearchRequestHandler(
     Request request,
     ClientConnection clientConnection,
     IConnectionsService connectionsService,
     ILoadChatsService loadChatsService,
     INodesService nodesService,
     ILoadUsersService loadUsersService,
     ILoadChannelsService loadChannelsService,
     IPrivacyService privacyService,
     INodeRequestSender nodeRequestSender)
 {
     this.request             = (SearchRequest)request;
     this.clientConnection    = clientConnection;
     this.connectionsService  = connectionsService;
     this.loadChatsService    = loadChatsService;
     this.nodesService        = nodesService;
     this.loadUsersService    = loadUsersService;
     this.loadChannelsService = loadChannelsService;
     this.privacyService      = privacyService;
     this.nodeRequestSender   = nodeRequestSender;
 }
Beispiel #19
0
 public DeleteConversationsRequestHandler(
     Request request,
     ClientConnection clientConnection,
     INodeNoticeService nodeNoticeService,
     ILoadChatsService loadChatsService,
     IDeleteChatsService deleteChatsService,
     ILoadDialogsService loadDialogsService,
     IDeleteDialogsService deleteDialogsService,
     ILoadChannelsService loadChannelsService,
     IDeleteChannelsService deleteChannelsService)
 {
     this.request               = (DeleteConversationsRequest)request;
     this.clientConnection      = clientConnection;
     this.nodeNoticeService     = nodeNoticeService;
     this.loadChatsService      = loadChatsService;
     this.deleteChatsService    = deleteChatsService;
     this.loadDialogsService    = loadDialogsService;
     this.deleteDialogsService  = deleteDialogsService;
     this.loadChannelsService   = loadChannelsService;
     this.deleteChannelsService = deleteChannelsService;
 }
Beispiel #20
0
 public LoadUsersService(IAppServiceProvider appServiceProvider, IDbContextFactory <MessengerDbContext> contextFactory)
 {
     this.loadChannelsService = appServiceProvider.LoadChannelsService;
     this.loadChatsService    = appServiceProvider.LoadChatsService;
     this.contextFactory      = contextFactory;
 }
Beispiel #21
0
 public GetChatUsersInformationNodeRequestHandler(NodeRequest request, NodeConnection current, ILoadChatsService loadChatsService)
 {
     this.request          = (GetChatUsersInformationNodeRequest)request;
     this.current          = current;
     this.loadChatsService = loadChatsService;
 }
 public GetChatsRequestHandler(Request request, ILoadChatsService loadChatsService, ClientConnection clientConnection)
 {
     this.request          = (GetChatsRequest)request;
     this.loadChatsService = loadChatsService;
     this.clientConnection = clientConnection;
 }
 public GetChatsInfoNodeRequestHandler(Request request, ILoadChatsService loadChatsService)
 {
     this.request          = (GetChatsInformationNodeRequest)request;
     this.loadChatsService = loadChatsService;
 }