Exemplo n.º 1
0
 public MatchService(IMatchStore matchStore, IHubService hubService, IUserManagerService userManagerService, INavigationService navigationService)
 {
     this.matchStore         = matchStore;
     this.hubService         = hubService;
     this.userManagerService = userManagerService;
     this.navigationService  = navigationService;
 }
Exemplo n.º 2
0
        public MatchBP(IMatchStore matchStore, IPlayerStore playerStore, ITeamStore teamStore, ISportStore sportStore)
        {
            if (matchStore == null) throw new ArgumentNullException("matchStore");
            if (playerStore == null) throw new ArgumentNullException("playerStore");
            if (teamStore == null) throw new ArgumentNullException("teamStore");
            if (sportStore == null) throw new ArgumentNullException("sportStore");

            _matchStore = matchStore;
            _playerStore = playerStore;
            _teamStore = teamStore;
            _sportStore = sportStore;
        }
Exemplo n.º 3
0
        public GameClient(
            IMatchStore matchStore,
            IHubService hubService,
            INavigationService navigationService,
            IMatchService matchService,
            IMessageService messageService,
            IMessageStore messageStore)
        {
            this.matchService      = matchService;
            this.matchStore        = matchStore;
            this.hubService        = hubService;
            this.navigationService = navigationService;
            this.messageService    = messageService;
            this.messageStore      = messageStore;

            hubService.Connection.On <MatchStatus>(nameof(ReceiveResult), ReceiveResult);
            hubService.Connection.On <MatchStatus>(nameof(MatchCreated), MatchCreated);
            hubService.Connection.On <Guid, Message>(nameof(ReceiveMatchMessage), ReceiveMatchMessage);
        }