예제 #1
0
 public PollsService(IAppServiceProvider appServiceProvider, IDbContextFactory <MessengerDbContext> contextFactory)
 {
     conversationsService = appServiceProvider.ConversationsService;
     this.contextFactory  = contextFactory;
     nodeRequestSender    = appServiceProvider.NodeRequestSender;
     connectionsService   = appServiceProvider.ConnectionsService;
 }
 public PollingNodeNoticeHandler(NodeNotice notice, NodeConnection nodeConnection, IPollsService pollsService, INodeRequestSender nodeRequestSender)
 {
     this.notice            = (PollingNodeNotice)notice;
     this.nodeConnection    = nodeConnection;
     this.pollsService      = pollsService;
     this.nodeRequestSender = nodeRequestSender;
 }
예제 #3
0
 public GetUserContactsRequestHandler(Request request, ClientConnection clientConnection, IConnectionsService connectionsService, IContactsService contactsService, INodeRequestSender nodeRequestSender)
 {
     this.request            = (GetUserContactsRequest)request;
     this.clientConnection   = clientConnection;
     this.connectionsService = connectionsService;
     this.contactsService    = contactsService;
     this.nodeRequestSender  = nodeRequestSender;
 }
예제 #4
0
 public ClientDataReceiver(ClientConnection client, IAppServiceProvider serviceProvider) : base(serviceProvider)
 {
     socket             = client.ClientSocket;
     connectionsService = serviceProvider.ConnectionsService;
     nodeNoticeService  = serviceProvider.NodeNoticeService;
     nodeRequestSender  = serviceProvider.NodeRequestSender;
     this.client        = client;
 }
 public GetPollVotedUsersRequestHandler(Request request, ClientConnection clientConnection, IConnectionsService connectionsService, IPollsService pollsService, INodeRequestSender nodeRequestSender)
 {
     this.request            = (GetPollVotedUsersRequest)request;
     this.clientConnection   = clientConnection;
     this.connectionsService = connectionsService;
     this.pollsService       = pollsService;
     this.nodeRequestSender  = nodeRequestSender;
 }
 public ChannelUsersNodeNoticeHandler(NodeNotice notice, NodeConnection current, ICreateChannelsService createChannelsService, INodeRequestSender nodeRequestSender, ICrossNodeService crossNodeService)
 {
     this.notice  = (ChannelUsersNodeNotice)notice;
     this.current = current;
     this.createChannelsService = createChannelsService;
     this.nodeRequestSender     = nodeRequestSender;
     this.crossNodeService      = crossNodeService;
 }
예제 #7
0
 public FilesController(IFileStorage fileStorage, INodeNoticeService nodeNoticeService, IConnectionsService connectionsService, IFilesService filesService, INodesService nodesService, INodeRequestSender nodeRequestSender)
 {
     this.fileStorage        = fileStorage;
     this.nodeNoticeService  = nodeNoticeService;
     this.connectionsService = connectionsService;
     this.filesService       = filesService;
     this.nodesService       = nodesService;
     this.nodeRequestSender  = nodeRequestSender;
 }
예제 #8
0
 public SetConnectionEncryptedRequestHandler(
     Request request, ClientConnection clientConnection, IConnectionsService connectionsService,
     IKeysService keysService, INodeRequestSender nodeRequestSender)
 {
     this.request            = (SetConnectionEncryptedRequest)request;
     this.clientConnection   = clientConnection;
     this.connectionsService = connectionsService;
     this.keysService        = keysService;
     this.nodeRequestSender  = nodeRequestSender;
 }
 public GetUsersRequestHandler(
     Request request, ClientConnection clientConnection, IConnectionsService connectionsService,
     ILoadUsersService loadUsersService, IPrivacyService privacyService, INodeRequestSender nodeRequestSender)
 {
     this.request            = (GetUsersRequest)request;
     this.clientConnection   = clientConnection;
     this.connectionsService = connectionsService;
     this.loadUsersService   = loadUsersService;
     this.privacyService     = privacyService;
     this.nodeRequestSender  = nodeRequestSender;
 }
예제 #10
0
 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;
 }
 public AddUsersChatNoticeHandler(NodeNotice notice,
                                  NodeConnection node,
                                  IConversationsNoticeService conversationsNoticeService,
                                  IUpdateChatsService updateChatsService,
                                  INodeRequestSender nodeRequestSender,
                                  ICrossNodeService crossNodeService,
                                  ISystemMessagesService systemMessagesService)
 {
     this.notice = (AddUsersChatNodeNotice)notice;
     this.node   = node;
     this.conversationsNoticeService = conversationsNoticeService;
     this.updateChatsService         = updateChatsService;
     this.nodeRequestSender          = nodeRequestSender;
     this.crossNodeService           = crossNodeService;
     this.systemMessagesService      = systemMessagesService;
 }
예제 #12
0
 public LoginRequestHandler(Request request,
                            ClientConnection clientConnection,
                            IConnectionsService connectionsService,
                            INoticeService noticeService,
                            ITokensService tokensService,
                            ILoadUsersService loadUsersService,
                            IPendingMessagesService pendingMessagesService,
                            INodeRequestSender nodeRequestSender)
 {
     this.request                = (LoginRequest)request;
     this.clientConnection       = clientConnection;
     this.connectionsService     = connectionsService;
     this.noticeService          = noticeService;
     this.tokensService          = tokensService;
     this.loadUsersService       = loadUsersService;
     this.pendingMessagesService = pendingMessagesService;
     this.nodeRequestSender      = nodeRequestSender;
 }
 public UserMigrationController(
     INodeNoticeService nodeNoticeService,
     IConnectionsService connectionsService,
     INoticeService noticeService,
     IChangeNodeOperationsService changeNodeOperationsService,
     ILoadUsersService loadUsersService,
     IUpdateUsersService updateUsersService,
     IDeleteUsersService deleteUsersService,
     INodeRequestSender nodeRequestSender)
 {
     this.nodeNoticeService           = nodeNoticeService;
     this.connectionsService          = connectionsService;
     this.noticeService               = noticeService;
     this.changeNodeOperationsService = changeNodeOperationsService;
     this.loadUsersService            = loadUsersService;
     this.updateUsersService          = updateUsersService;
     this.deleteUsersService          = deleteUsersService;
     this.nodeRequestSender           = nodeRequestSender;
 }
 public AddUsersToChannelsRequestHandler(
     Request request,
     ClientConnection clientConnection,
     INodeNoticeService nodeNoticeService,
     IConversationsNoticeService conversationsNoticeService,
     IUpdateChannelsService updateChannelsService,
     ILoadChannelsService loadChannelsService,
     IConnectionsService connectionsService,
     INodeRequestSender nodeRequestSender)
 {
     this.request                    = (AddUsersToChannelsRequest)request;
     this.clientConnection           = clientConnection;
     this.nodeNoticeService          = nodeNoticeService;
     this.conversationsNoticeService = conversationsNoticeService;
     this.updateChannelsService      = updateChannelsService;
     this.loadChannelsService        = loadChannelsService;
     this.connectionsService         = connectionsService;
     this.nodeRequestSender          = nodeRequestSender;
 }
예제 #15
0
 public NewMessagesNoticeHandler(CommunicationObject @object,
                                 NodeConnection current,
                                 IConversationsNoticeService conversationsNoticeService,
                                 IAttachmentsService attachmentsService,
                                 ICreateMessagesService createMessagesService,
                                 ICreateChannelsService createChannelsService,
                                 INodeRequestSender nodeRequestSender,
                                 ICrossNodeService crossNodeService,
                                 ILoadDialogsService loadDialogsService)
 {
     notice       = (NewMessagesNodeNotice)@object;
     this.current = current;
     this.conversationsNoticeService = conversationsNoticeService;
     this.attachmentsService         = attachmentsService;
     this.createMessagesService      = createMessagesService;
     this.createChannelsService      = createChannelsService;
     this.nodeRequestSender          = nodeRequestSender;
     this.crossNodeService           = crossNodeService;
     this.loadDialogsService         = loadDialogsService;
 }
 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;
 }
 public AddUserChatsRequestHandler(
     Request request,
     ClientConnection clientConnection,
     INodeNoticeService nodeNoticeService,
     IConversationsNoticeService conversationsNoticeService,
     IUpdateChatsService updateChatsService,
     ILoadChatsService loadChatsService,
     INodeRequestSender nodeRequestSender,
     IConnectionsService connectionsService,
     ISystemMessagesService systemMessagesService)
 {
     this.request                    = (AddUsersChatsRequest)request;
     this.clientConnection           = clientConnection;
     this.nodeNoticeService          = nodeNoticeService;
     this.conversationsNoticeService = conversationsNoticeService;
     this.updateChatsService         = updateChatsService;
     this.loadChatsService           = loadChatsService;
     this.nodeRequestSender          = nodeRequestSender;
     this.connectionsService         = connectionsService;
     this.systemMessagesService      = systemMessagesService;
 }
예제 #18
0
 public KeysService(IDbContextFactory <MessengerDbContext> contextFactory, INodeRequestSender nodeRequestSender, IConnectionsService connectionsService)
 {
     this.contextFactory     = contextFactory;
     this.nodeRequestSender  = nodeRequestSender;
     this.connectionsService = connectionsService;
 }