コード例 #1
0
 public Service(StatefulServiceContext context,
                ICupRepository cupRepository, IClubRepository clubRepository)
     : base(context)
 {
     _cupRepository  = cupRepository;
     _clubRepository = clubRepository;
 }
コード例 #2
0
        public CupService(StatefulServiceContext context, ICupRepository cupRepository, IClubRepository clubRepository)
            : base(context)
        {
            //if (!StateManager.TryAddStateSerializer(new LeaderboardSerializer()))
            //{
            //    throw new InvalidOperationException("Failed to set Leaderboard custom serializer");
            //}

            _cupRepository  = cupRepository;
            _clubRepository = clubRepository;
        }
コード例 #3
0
 public CupService(ICupRepository cupRepository) : base(cupRepository)
 {
     this.cupRepository = cupRepository;
 }
コード例 #4
0
 public CupService(ICupRepository cupRepository, ICompetitionService competitionService)
     : base(cupRepository)
 {
     this.competitionService = competitionService;
     this.cupRepository      = cupRepository;
 }