public PollingNodeNoticeHandler(NodeNotice notice, NodeConnection nodeConnection, IPollsService pollsService, INodeRequestSender nodeRequestSender)
 {
     this.notice            = (PollingNodeNotice)notice;
     this.nodeConnection    = nodeConnection;
     this.pollsService      = pollsService;
     this.nodeRequestSender = nodeRequestSender;
 }
 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;
 }
Exemplo n.º 3
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;
 }
Exemplo n.º 4
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;
 }
Exemplo n.º 5
0
 public UsersController(IUserService userService, ICommentsService commentsService, IPollsService pollsService)
 {
     _userService     = userService;
     _commentsService = commentsService;
     _pollsService    = pollsService;
 }
Exemplo n.º 6
0
 public GetPollInformationNodeRequestHandler(NodeRequest request, NodeConnection current, IPollsService pollsService)
 {
     this.request      = (GetPollInformationNodeRequest)request;
     this.current      = current;
     this.pollsService = pollsService;
 }
Exemplo n.º 7
0
 public PollsController(IPollsService pollsService, IAnswersService answersService, ICommentsService commentsService)
 {
     _pollsService    = pollsService;
     _answersService  = answersService;
     _commentsService = commentsService;
 }
Exemplo n.º 8
0
 public PollsTests()
 {
     TestsData testsData = TestsData.Create(nameof(PollsTests));
     fillTestDbHelper = testsData.FillTestDbHelper;
     pollsService = testsData.AppServiceProvider.PollsService;
 }