Exemplo n.º 1
0
 public BaseHub(ILifetimeScope lifetimeScope)
 {
     _hubLifetimeScope   = lifetimeScope.BeginLifetimeScope();
     _mediator           = _hubLifetimeScope.Resolve <IMediator>();
     _userMappingService = _hubLifetimeScope.Resolve <IUserMappingService>();
     _hubContext         = _hubLifetimeScope.Resolve <IConnectionManager>().GetHubContext <T>();
 }
Exemplo n.º 2
0
 public UserCreatedEventHandler(
     IUserRepository placeRepository,
     IUserMappingService placeMappingService,
     IUnitOfWork unitOfWork,
     ILogger <UserCreatedEventHandler> logger)
 {
     _userRepository     = placeRepository;
     _userMappingService = placeMappingService;
     _unitOfWork         = unitOfWork;
     _logger             = logger;
 }
 public FeedbackController(IMediator mediator, IUserMappingService userMappingService)
 {
     _mediator           = mediator;
     _userMappingService = userMappingService;
     _user = _userMappingService.GetUserFromIdentity(User.Identity);
 }
 public DebugController(IUserMappingService userMappingService, GameHub gameHub)
 {
     _userMappingService = userMappingService;
     _gameHub            = gameHub;
 }
Exemplo n.º 5
0
 public UserController(IMediator mediator, IUserMappingService userMappingService)
 {
     _mediator           = mediator;
     _userMappingService = userMappingService;
 }