public BaseHub(ILifetimeScope lifetimeScope) { _hubLifetimeScope = lifetimeScope.BeginLifetimeScope(); _mediator = _hubLifetimeScope.Resolve <IMediator>(); _userMappingService = _hubLifetimeScope.Resolve <IUserMappingService>(); _hubContext = _hubLifetimeScope.Resolve <IConnectionManager>().GetHubContext <T>(); }
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; }
public UserController(IMediator mediator, IUserMappingService userMappingService) { _mediator = mediator; _userMappingService = userMappingService; }