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

            tackModifyChatMessageServiceA.SkyWatch = skyWatch;
            chatMessageService.Tack = tackModifyChatMessageServiceA;
        }
Exemplo n.º 3
0
 public ChatMessageController(IChatMessageService service, IMailService mailService, IAutoMapper mapper, IOptions <AppSettings> appSettings)
 {
     _appSettings = appSettings.Value;
     _mailService = mailService;
     _mapper      = mapper;
     _service     = service;
 }
Exemplo n.º 4
0
 public ChatController(IChatRoomService roomService, IUsersService usersService, IMapper mapper, IChatMessageService chatMessageService, IConnectionService connectionService)
 {
     _roomService        = roomService;
     _usersService       = usersService;
     _mapper             = mapper;
     _chatMessageService = chatMessageService;
     _connectionService  = connectionService;
 }
Exemplo n.º 5
0
 public UserService(IUnitOfWork uow, IOptions <AppSettings> appSettings, IAutoMapper mapper,
                    IChatMessageService chatMessageService)
 {
     _uow                = uow;
     _appSettings        = appSettings.Value;
     _mapper             = mapper;
     _chatMessageService = chatMessageService;
 }
Exemplo n.º 6
0
 public MainController(ISendService _sendService, IMetaMessageService _metaMessageService, IChatMessageService _chatMessageService, IUserPermissionService _userPermissionService)
 {
     sendService           = _sendService;
     chatMessageService    = _chatMessageService;
     metaMessageService    = _metaMessageService;
     userPermissionService = _userPermissionService;
     serverThread.Start(this);
 }
Exemplo n.º 7
0
 public ChatHub(
     IChatMessageService chatMessageService,
     IChatGroupUserService chatGroupUserService,
     UserManager <User> userManager)
 {
     _chatMessageService   = chatMessageService;
     _chatGroupUserService = chatGroupUserService;
     _userManager          = userManager;
 }
Exemplo n.º 8
0
 public ChatService(
     IStorageService storageService,
     IUserService userService,
     IChatMessageService chatMessageService)
 {
     this.storageService     = storageService;
     this.userService        = userService;
     this.chatMessageService = chatMessageService;
 }
Exemplo n.º 9
0
 public ChatMessageController(
     IConfigurationManager configManager,
     IChatMessageService chatMessageService,
     IChatRoomRepository repo,
     IConnection connection
     )
     : base(configManager)
 {
     _chatMessageService = chatMessageService;
     _channel            = connection.CreateModel();
 }
Exemplo n.º 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;
 }
Exemplo n.º 11
0
 public MessageReceiver(
     IAuthorizedUserHelper authorizedUserHelper,
     IChannelMessageService channelMessageService,
     IChatMessageService chatMessageService,
     ISocketStream socketStream
     )
 {
     _authorizedUserHelper  = authorizedUserHelper;
     _channelMessageService = channelMessageService;
     _chatMessageService    = chatMessageService;
     _socketStream          = socketStream;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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();
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 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();
 }
Exemplo n.º 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);
            }
        }
Exemplo n.º 20
0
 public chatMessagesController(IChatMessageService chatMessageService)
 {
     this.chatMessageService = chatMessageService;
 }
Exemplo n.º 21
0
 public MessageManagementController()
 {
     serrvice = ML.BC.Infrastructure.Ioc.GetService <IChatMessageService>();
 }
 public ChatController(IChatMessageService chatMessageService, IProfileRepository profileRepository)
 {
     _chatMessageService = chatMessageService;
     _profileRepository  = profileRepository;
 }
Exemplo n.º 23
0
 public ChatMessageController(IChatMessageService chatMessageService, IUserService userService)
 {
     _chatMessageService = chatMessageService;
     _userService        = userService;
 }
Exemplo n.º 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;
 }
Exemplo n.º 26
0
 public MessageController(IChatMessageService messageService)
 {
     _messageService = messageService;
 }
 public MessagesController(IChatMessageService service)
 {
     _service = service;
 }
Exemplo n.º 28
0
 public ChatMessagesController(IChatMessageService service)
 {
     this.service = service;
 }
Exemplo n.º 29
0
 public ChatMessageController()
 {
     service = Ioc.GetService <IChatMessageService>();
 }
Exemplo n.º 30
0
 /// <summary>
 /// Controller.
 /// </summary>
 public ChatMessageController(IChatMessageService chatMessageService)
 {
     _chatMessageService = chatMessageService;
 }
Exemplo n.º 31
0
 public ChatMessageController(IChatMessageService chatMessageService)
 {
     _chatMessageService = chatMessageService;
 }