Esempio n. 1
0
 public GamesController(IGameAppService gameAppService, IUserAppService userAppService, IBorrowAppService borrowAppService)
 {
     _gameAppRepository   = gameAppService;
     _userAppRepository   = userAppService;
     _borrowAppRepository = borrowAppService;
     _context             = new SessionContext();
 }
Esempio n. 2
0
 public GameController(IGameAppService gameAppService,
                       IGameRunnerAppService gameRunnerAppService,
                       ICoreInjector coreInjector) : base(coreInjector)
 {
     _gameAppService       = gameAppService;
     _gameRunnerAppService = gameRunnerAppService;
 }
Esempio n. 3
0
 public ContentController(IUserContentAppService userContentAppService
                          , IGameAppService gameAppService
                          , INotificationAppService notificationAppService)
 {
     this.userContentAppService  = userContentAppService;
     this.gameAppService         = gameAppService;
     this.notificationAppService = notificationAppService;
 }
Esempio n. 4
0
 public GameController(IGameAppService gameAppService,
                       IGameStatsService gameStatsService,
                       IRedisProvider redisProvider)
 {
     this.gameAppService   = gameAppService ?? throw new ArgumentNullException(nameof(gameAppService));
     this.gameStatsService = gameStatsService ?? throw new ArgumentNullException(nameof(gameStatsService));
     this.redisProvider    = redisProvider ?? throw new ArgumentNullException(nameof(redisProvider));
 }
Esempio n. 5
0
 public GamesController(
     IActionResultConverter actionResultConverter,
     IGameAppService gameService,
     IMapper mapper)
 {
     _actionResultConverter = actionResultConverter;
     _gameService           = gameService;
     _mapper = mapper;
 }
Esempio n. 6
0
 public LoanController(
     ILoanAppService loanAppService,
     IGameAppService gameAppService,
     IFriendAppService friendAppService)
 {
     _loanAppService   = loanAppService;
     _gameAppService   = gameAppService;
     _friendAppService = friendAppService;
 }
Esempio n. 7
0
 public GameController(IGameAppService gameAppService
                       , INotificationAppService notificationAppService
                       , ITeamAppService teamAppService
                       , ILocalizationAppService translationAppService) : base()
 {
     this.gameAppService         = gameAppService;
     this.notificationAppService = notificationAppService;
     this.teamAppService         = teamAppService;
     this.translationAppService  = translationAppService;
 }
Esempio n. 8
0
 public CountersViewComponent(IHttpContextAccessor httpContextAccessor
                              , IGameAppService gameAppService
                              , IProfileAppService profileAppService
                              , IUserContentAppService contentService
                              , ITeamAppService teamAppService) : base(httpContextAccessor)
 {
     this.gameAppService    = gameAppService;
     this.profileAppService = profileAppService;
     this.contentService    = contentService;
     this.teamAppService    = teamAppService;
 }
Esempio n. 9
0
        public async Task Invoke(HttpContext context, IGameAppService gameAppService, IProfileAppService profileAppService, IUserContentAppService contentAppService)
        {
            StringBuilder sb = new StringBuilder();

            GameAppService    = gameAppService;
            ProfileAppService = profileAppService;
            ContentAppService = contentAppService;

            if (context.Request.Path.Value.Equals("/sitemap.xml", StringComparison.OrdinalIgnoreCase))
            {
                Stream stream = context.Response.Body;
                context.Response.StatusCode  = 200;
                context.Response.ContentType = "application/xml";
                sb.Append("<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">");

                Assembly assembly = Assembly.GetExecutingAssembly();

                List <Type> controllers = assembly.GetTypes()
                                          .Where(type => typeof(Controller).IsAssignableFrom(type) ||
                                                 type.Name.EndsWith("controller")).ToList();

                foreach (Type controller in controllers)
                {
                    sb.AppendLine(CheckController(controller));
                }

                sb.AppendLine("</urlset>");
                using (MemoryStream memoryStream = new MemoryStream())
                {
                    byte[] bytes = Encoding.UTF8.GetBytes(sb.ToString());
                    memoryStream.Write(bytes, 0, bytes.Length);
                    memoryStream.Seek(0, SeekOrigin.Begin);
                    await memoryStream.CopyToAsync(stream, bytes.Length);
                }
            }
            else
            {
                await _next(context);
            }
        }
 public GameApiController(
     IGameAppService gameAppService) =>
Esempio n. 11
0
 public LatestGamesViewComponent(IHttpContextAccessor httpContextAccessor, IGameAppService gameAppService) : base(httpContextAccessor)
 {
     _gameAppService = gameAppService;
 }
Esempio n. 12
0
 public LoanController(IGameAppService service)
 {
     _service = service;
 }
Esempio n. 13
0
 public AttachedController(IAttachedAppService attachedAppService, IGameAppService gameAppService)
 {
     _attachedAppService = attachedAppService;
 }
Esempio n. 14
0
 public UsersController(IUserAppService userAppService, IGameAppService gameAppService, IBorrowAppService borrowAppService)
 {
     _userRepository      = userAppService;
     _gameAppRepository   = gameAppService;
     _borrowAppRepository = borrowAppService;
 }
Esempio n. 15
0
 public GamesController(IGameAppService gameAppService)
 {
     _gameAppService = gameAppService;
 }
Esempio n. 16
0
 public FifteenGameController(IGameAppService gameAppService)
 {
     _gameAppService = gameAppService;
 }
Esempio n. 17
0
 public GameController(IGameAppService gameAppService)
 {
     this.gameAppService = gameAppService;
 }
 public HomeController(IFriendAppService friendAppService, IGameAppService gameAppService)
 {
     _friendAppService = friendAppService;
     _gameAppService   = gameAppService;
 }
Esempio n. 19
0
 public GameController(IGameAppService gameApp)
 {
     _gameApp = gameApp;
 }
Esempio n. 20
0
 public MoveController(IGameAppService gameAppService)
 {
     _gameAppService = gameAppService;
 }
Esempio n. 21
0
 public HomeController(IUserPreferencesAppService userPreferencesAppService, IFeaturedContentAppService featuredContentAppService, IGameAppService gameAppService) : base()
 {
     this.userPreferencesAppService = userPreferencesAppService;
     this.featuredContentAppService = featuredContentAppService;
     this.gameAppService            = gameAppService;
 }
Esempio n. 22
0
 public MastermindController(IGameAppService gameAppService, IMapper mapper)
 {
     _gameAppService = gameAppService;
     _mapper         = mapper;
 }