Пример #1
0
 public ChatHub(IChatRoomService roomService, IServerCommands serverCommands, IChatMessageService chatMessageService, IConnectionService connectionService)
 {
     _roomService        = roomService;
     _serverCommands     = serverCommands;
     _chatMessageService = chatMessageService;
     _connectionService  = connectionService;
 }
Пример #2
0
        public void ChatMessageServiceCompositionRoute(IChatMessageService chatMessageService, IRoutingService <string> routingService, ISkyWatch skyWatch)
        {
            ITack tackModifyChatMessageServiceA = _erector.Container.Resolve <ITack>();

            tackModifyChatMessageServiceA.SkyWatch = skyWatch;
            chatMessageService.Tack = tackModifyChatMessageServiceA;
        }
Пример #3
0
 public ChatMessageController(IChatMessageService service, IMailService mailService, IAutoMapper mapper, IOptions <AppSettings> appSettings)
 {
     _appSettings = appSettings.Value;
     _mailService = mailService;
     _mapper      = mapper;
     _service     = service;
 }
Пример #4
0
 public ChatController(IChatRoomService roomService, IUsersService usersService, IMapper mapper, IChatMessageService chatMessageService, IConnectionService connectionService)
 {
     _roomService        = roomService;
     _usersService       = usersService;
     _mapper             = mapper;
     _chatMessageService = chatMessageService;
     _connectionService  = connectionService;
 }
Пример #5
0
 public UserService(IUnitOfWork uow, IOptions <AppSettings> appSettings, IAutoMapper mapper,
                    IChatMessageService chatMessageService)
 {
     _uow                = uow;
     _appSettings        = appSettings.Value;
     _mapper             = mapper;
     _chatMessageService = chatMessageService;
 }
Пример #6
0
 public MainController(ISendService _sendService, IMetaMessageService _metaMessageService, IChatMessageService _chatMessageService, IUserPermissionService _userPermissionService)
 {
     sendService           = _sendService;
     chatMessageService    = _chatMessageService;
     metaMessageService    = _metaMessageService;
     userPermissionService = _userPermissionService;
     serverThread.Start(this);
 }
Пример #7
0
 public ChatHub(
     IChatMessageService chatMessageService,
     IChatGroupUserService chatGroupUserService,
     UserManager <User> userManager)
 {
     _chatMessageService   = chatMessageService;
     _chatGroupUserService = chatGroupUserService;
     _userManager          = userManager;
 }
Пример #8
0
 public ChatService(
     IStorageService storageService,
     IUserService userService,
     IChatMessageService chatMessageService)
 {
     this.storageService     = storageService;
     this.userService        = userService;
     this.chatMessageService = chatMessageService;
 }
Пример #9
0
 public ChatMessageController(
     IConfigurationManager configManager,
     IChatMessageService chatMessageService,
     IChatRoomRepository repo,
     IConnection connection
     )
     : base(configManager)
 {
     _chatMessageService = chatMessageService;
     _channel            = connection.CreateModel();
 }
Пример #10
0
 public ChatServiceCallback(
     Core.Services.IChatService chatService,
     IChatMessageService chatMessageService,
     IUserService userService,
     IMapper mapper)
 {
     this.chatService        = chatService;
     this.chatMessageService = chatMessageService;
     this.userService        = userService;
     this.mapper             = mapper;
 }
Пример #11
0
 public MessageReceiver(
     IAuthorizedUserHelper authorizedUserHelper,
     IChannelMessageService channelMessageService,
     IChatMessageService chatMessageService,
     ISocketStream socketStream
     )
 {
     _authorizedUserHelper  = authorizedUserHelper;
     _channelMessageService = channelMessageService;
     _chatMessageService    = chatMessageService;
     _socketStream          = socketStream;
 }
Пример #12
0
 public ChatService(
     IChatRepository chatRepository,
     IChatPermissionService chatPermissionService,
     IChatMessageService chatMessageService,
     IUserService userService,
     IMapper mapper)
 {
     this.chatRepository        = chatRepository;
     this.chatPermissionService = chatPermissionService;
     this.chatMessageService    = chatMessageService;
     this.userService           = userService;
     this.mapper = mapper;
 }
Пример #13
0
 public ChatGroupController(
     IChatGroupService chatGroupService,
     IChatGroupUserService chatGroupUserService,
     IChatMessageService chatMessageService,
     UserManager <User> userManager,
     IAuthorizationService authorizationService)
 {
     _chatGroupService     = chatGroupService;
     _chatGroupUserService = chatGroupUserService;
     _chatMessageService   = chatMessageService;
     _userManager          = userManager;
     _authorizationService = authorizationService;
 }
Пример #14
0
 public ChatMessageController(
     IChatMessageService chatMessageService,
     IHubContext <ChatHub> chatHubContext,
     UserManager <User> userManager,
     IAuthorizationService authorizationService,
     IChatGroupUserService chatGroupUserService)
 {
     _chatMessageService   = chatMessageService;
     _chatGroupUserService = chatGroupUserService;
     _chatHubContext       = chatHubContext;
     _userManager          = userManager;
     _authorizationService = authorizationService;
 }
Пример #15
0
 public ChatHub(IChatRoomService chatRoomService,
                IMapper mapper,
                IUserConnectionService userConnectionService,
                IUserService userService,
                IChatMessageService chatMessageService,
                IChatRoomUserService chatRoomUserService)
 {
     _chatRoomService       = chatRoomService;
     _mapper                = mapper;
     _userConnectionService = userConnectionService;
     _userService           = userService;
     _chatMessageService    = chatMessageService;
     _chatRoomUserService   = chatRoomUserService;
 }
Пример #16
0
        public ChatRoomController(
            IConfigurationManager configManager,
            IChatRoomService chatRoomService,
            IChatMessageService chatMessageService,
            UserManager <ApplicationUser> userManager,
            IConnection connection

            )
            : base(configManager)
        {
            _chatRoomService    = chatRoomService;
            _chatMessageService = chatMessageService;
            _userManager        = userManager;
            _channel            = connection.CreateModel();
        }
Пример #17
0
        public void OnLoad(IServiceProvider serviceProvider)
        {
            try
            {
                _trace                   = serviceProvider.GetService(typeof(TopicTracer)) as TopicTracer;
                _attributeService        = serviceProvider.GetService(typeof(IAttributeService)) as IAttributeService;
                _chatMessageService      = serviceProvider.GetService(typeof(IChatMessageService)) as IChatMessageService;
                _chatReassignmentService = serviceProvider.GetService(typeof(IChatReassignmentService)) as IChatReassignmentService;

                Console.WriteLine("[{0}] - OnLoad", BotName);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
        }
Пример #18
0
 public TwitchChatBotService(
     IOptions <TwitchConfiguration> twitchConfiguration,
     IOptions <LuisConfiguration> luisConfiguration,
     IChatMessageService chatMessageService,
     ITwitchUserChatRepository twitchUserChatRepository,
     ITwitchNewSubscriberRepository twitchNewSubscriberRepository,
     ITwitchUserAttendanceEventRepository twitchUserAttendanceEventRepository,
     ILuisService luisService
     )
 {
     _twitchConfiguration                 = twitchConfiguration.Value ?? throw new ArgumentNullException(nameof(twitchConfiguration));
     _luisConfiguration                   = luisConfiguration.Value ?? throw new ArgumentNullException(nameof(luisConfiguration));
     _chatMessageService                  = chatMessageService ?? throw new ArgumentNullException(nameof(chatMessageService));
     _twitchUserChatRepository            = twitchUserChatRepository ?? throw new ArgumentNullException(nameof(twitchUserChatRepository));
     _twitchNewSubscriberRepository       = twitchNewSubscriberRepository ?? throw new ArgumentNullException(nameof(twitchNewSubscriberRepository));
     _twitchUserAttendanceEventRepository = twitchUserAttendanceEventRepository ?? throw new ArgumentNullException(nameof(twitchUserAttendanceEventRepository));
     _twitchClientConnectionCredentials   = new ConnectionCredentials(_twitchConfiguration.BotUserName, _twitchConfiguration.BotToken);
     _luisService  = luisService ?? throw new ArgumentNullException(nameof(luisService));
     _twitchClient = new TwitchClient();
 }
Пример #19
0
        public void OnLoad(IServiceProvider serviceProvider)
        {
            try
            {
                _trace                   = serviceProvider.GetService(typeof(TopicTracer)) as TopicTracer;
                _attributeService        = serviceProvider.GetService(typeof(IAttributeService)) as IAttributeService;
                _chatMessageService      = serviceProvider.GetService(typeof(IChatMessageService)) as IChatMessageService;
                _chatReassignmentService = serviceProvider.GetService(typeof(IChatReassignmentService)) as IChatReassignmentService;

                ServicePointManager.Expect100Continue      = false;
                ServicePointManager.DefaultConnectionLimit = 2000;
                WebRequest.DefaultWebProxy = null;

                Console.WriteLine("[{0}] - OnLoad", BotName);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
        }
Пример #20
0
 public chatMessagesController(IChatMessageService chatMessageService)
 {
     this.chatMessageService = chatMessageService;
 }
Пример #21
0
 public MessageManagementController()
 {
     serrvice = ML.BC.Infrastructure.Ioc.GetService <IChatMessageService>();
 }
 public ChatController(IChatMessageService chatMessageService, IProfileRepository profileRepository)
 {
     _chatMessageService = chatMessageService;
     _profileRepository  = profileRepository;
 }
Пример #23
0
 public ChatMessageController(IChatMessageService chatMessageService, IUserService userService)
 {
     _chatMessageService = chatMessageService;
     _userService        = userService;
 }
Пример #24
0
 public ChatMessageController(IChatMessageService chatMessagesService, IUserService userService, IDriverService driverService)
 {
     this._chatMessagesService = chatMessagesService;
     this._userService         = userService;
     this._driverService       = driverService;
 }
 public ChatHub(IChatMessageService chatMessageService)
 {
     this.chatMessageService = chatMessageService;
 }
Пример #26
0
 public MessageController(IChatMessageService messageService)
 {
     _messageService = messageService;
 }
 public MessagesController(IChatMessageService service)
 {
     _service = service;
 }
Пример #28
0
 public ChatMessagesController(IChatMessageService service)
 {
     this.service = service;
 }
Пример #29
0
 public ChatMessageController()
 {
     service = Ioc.GetService <IChatMessageService>();
 }
Пример #30
0
 /// <summary>
 /// Controller.
 /// </summary>
 public ChatMessageController(IChatMessageService chatMessageService)
 {
     _chatMessageService = chatMessageService;
 }
Пример #31
0
 public ChatMessageController(IChatMessageService chatMessageService)
 {
     _chatMessageService = chatMessageService;
 }