public CreateChannelsService(IAppServiceProvider appServiceProvider, IDbContextFactory <MessengerDbContext> contextFactory) { this.updateChannelsService = appServiceProvider.UpdateChannelsService; this.loadUsersService = appServiceProvider.LoadUsersService; this.poolsService = appServiceProvider.PoolsService; this.contextFactory = contextFactory; }
public UpdateMessagesService(IAppServiceProvider appServiceProvider, IDbContextFactory <MessengerDbContext> contextFactory) { this.loadDialogsService = appServiceProvider.LoadDialogsService; this.updateChatsService = appServiceProvider.UpdateChatsService; this.updateChannelsService = appServiceProvider.UpdateChannelsService; this.contextFactory = contextFactory; }
public UpdateChannelsTests() { var testsData = TestsData.Create(nameof(UpdateChannelsTests)); fillTestDbHelper = testsData.FillTestDbHelper; updateChannelsService = testsData.AppServiceProvider.UpdateChannelsService; }
public EditChannelUsersRequestHandler( Request request, ClientConnection clientConnection, INodeNoticeService nodeNoticeService, ILoadChannelsService loadChannelsService, IUpdateChannelsService updateChannelsService) { this.request = (EditChannelUsersRequest)request; this.clientConnection = clientConnection; this.nodeNoticeService = nodeNoticeService; this.loadChannelsService = loadChannelsService; this.updateChannelsService = updateChannelsService; }
public MessagesReadNoticeHandler(NodeNotice notice, NodeConnection current, IConversationsNoticeService conversationsNoticeService, IUpdateMessagesService updateMessagesService, IUpdateChatsService updateChatsService, ILoadDialogsService loadDialogsService, IUpdateChannelsService updateChannelsService) { this.notice = (MessagesReadNodeNotice)notice; this.current = current; this.conversationsNoticeService = conversationsNoticeService; this.updateMessagesService = updateMessagesService; this.updateChatsService = updateChatsService; this.loadDialogsService = loadDialogsService; this.updateChannelsService = updateChannelsService; }
public EditChannelRequestHandler( Request request, ClientConnection clientConnection, INodeNoticeService nodeNoticeService, IConversationsNoticeService conversationsNoticeService, ILoadChannelsService loadChannelsService, IUpdateChannelsService updateChannelsService, ISystemMessagesService systemMessagesService) { this.request = (EditChannelRequest)request; this.clientConnection = clientConnection; this.nodeNoticeService = nodeNoticeService; this.conversationsNoticeService = conversationsNoticeService; this.loadChannelsService = loadChannelsService; this.updateChannelsService = updateChannelsService; this.systemMessagesService = systemMessagesService; }
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; }