public Service(StatefulServiceContext context, ICupRepository cupRepository, IClubRepository clubRepository) : base(context) { _cupRepository = cupRepository; _clubRepository = clubRepository; }
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; }
public CupService(ICupRepository cupRepository) : base(cupRepository) { this.cupRepository = cupRepository; }
public CupService(ICupRepository cupRepository, ICompetitionService competitionService) : base(cupRepository) { this.competitionService = competitionService; this.cupRepository = cupRepository; }