コード例 #1
0
 public MatchesController(IEncounterService aService, IAuthenticationService authService)
 {
     encounterService = aService;
     factory          = new EncounterModelFactory();
     errors           = new ErrorActionResultFactory(this);
     authenticator    = authService;
 }
コード例 #2
0
 public UsersController(IUserService aService, IAuthenticationService authenticationService, IImageService imageService)
 {
     userService   = aService;
     images        = imageService;
     authenticator = authenticationService;
     errors        = new ErrorActionResultFactory(this);
 }
コード例 #3
0
 public TeamsController(ITeamService aService, IImageService imageManager, IAuthenticationService authService)
 {
     teamService   = aService;
     errors        = new ErrorActionResultFactory(this);
     images        = imageManager;
     authenticator = authService;
 }
コード例 #4
0
 public FixturesController(IFixtureService service, IOptions <FixtureStrategies> config, IAuthenticationService authService)
 {
     fixtureService = service;
     fixtureConfig  = config;
     authenticator  = authService;
     factory        = new EncounterModelFactory();
     errors         = new ErrorActionResultFactory(this);
 }
コード例 #5
0
 public SportsController(ISportService sportRepo, ITeamService teamRepo,
                         IFixtureService fixtureService, ISportTableService tableGenerator,
                         IAuthenticationService authService, IImageService imageService)
 {
     sports        = sportRepo;
     fixture       = fixtureService;
     teams         = teamRepo;
     tableService  = tableGenerator;
     images        = imageService;
     authenticator = authService;
     errors        = new ErrorActionResultFactory(this);
 }
コード例 #6
0
 public LogsController(ILoggerService logService, IAuthenticationService authService)
 {
     logger        = logService;
     authenticator = authService;
     errors        = new ErrorActionResultFactory(this);
 }