Ejemplo n.º 1
0
 public RoomService(IRoomRepository roomRepository,
                    IMapper mapper, IAuthHelper authHelper, IUserRoomRepository userRoomRepository)
 {
     _mapper             = mapper;
     _roomRepository     = roomRepository;
     _authHelper         = authHelper;
     _userRoomRepository = userRoomRepository;
 }
Ejemplo n.º 2
0
 public AddNewUserRoom(IRoomRepository roomRepository,
                       IUserRepository userRepository,
                       IUserRoomRepository userRoomRepository, IUnitOfWork unitOfWork)
 {
     this.roomRepository     = roomRepository;
     this.userRepository     = userRepository;
     this.userRoomRepository = userRoomRepository;
     _unitOfWork             = unitOfWork;
 }
 public AddNewPrivateConversation(IRoomRepository roomRepository,
                                  IUserRepository userRepository,
                                  IUserRoomRepository userRoomRepository,
                                  IDomainRepository domainRepository, IUnitOfWork unitOfWork)
 {
     this.roomRepository     = roomRepository;
     this.userRepository     = userRepository;
     this.userRoomRepository = userRoomRepository;
     this.domainRepository   = domainRepository;
     _unitOfWork             = unitOfWork;
 }
Ejemplo n.º 4
0
        public RoomActor(IBORepository <Room> roomRepository,
                         IBORepository <User> userRepository,
                         IMessageRepository <Message> messageRepository,
                         IUserRoomRepository <UserRoom> visitRepository,
                         IActorPathResolver pathResolver)
        {
            this.userRepository    = userRepository;
            this.roomRepository    = roomRepository;
            this.messageRepository = messageRepository;
            this.visitRepository   = visitRepository;
            this.pathResolver      = pathResolver;

            mediator = DistributedPubSub.Get(Context.System).Mediator;

            Receive <Messages.Subscribe>(evt => HandleSubscribe(evt));
            Receive <Messages.Unsubscribe>(evt => HandleUnsubscribe(evt));
            Receive <TextMessage>(msg => SendToSubscribers(msg));
        }
 public UserRoomController(IUserRoomRepository repo) => _repo = repo;
Ejemplo n.º 6
0
 public GetUserRoomByIds(IUserRoomRepository userRoomRepository)
 {
     this.userRoomRepository = userRoomRepository;
 }