public EventsController(Arma3EventContext context, IAuthorizationService auth, PersistService persist, IApiTacMaps tacMaps, IMapInfosService mapInfos, IConfiguration config) { _context = context; _auth = auth; _persist = persist; _tacMaps = tacMaps; _mapInfos = mapInfos; _config = config; }
internal static async Task <User> GetUser(Arma3EventContext context, ClaimsPrincipal user) { if (user?.Identity?.IsAuthenticated ?? false) { var idClaim = user.FindFirst(UserIdClaim); if (idClaim != null) { var userId = int.Parse(idClaim.Value); return(await context.Users.FirstOrDefaultAsync(u => u.UserID == userId)); } var steamId = GetSteamId(user); if (steamId != null) { return(await context.Users.FirstOrDefaultAsync(u => u.SteamId == steamId)); } } return(null); }
public HomeController(ILogger <HomeController> logger, Arma3EventContext context, IApiTacMaps tacMaps) { _logger = logger; _context = context; _tacMaps = tacMaps; }
public AdminNewsController(Arma3EventContext context) { _context = context; }
public AdminVideosController(Arma3EventContext context, IHttpClientFactory clientFactory) { _context = context; _clientFactory = clientFactory; }
public AdminContentBlocksController(Arma3EventContext context) { _context = context; }
public AdminFactionsController(Arma3EventContext context) { _context = context; }
public AdminMatchTechnicalInfosController(Arma3EventContext context) { _context = context; }
public AdminMatchUsersController(Arma3EventContext context) { _context = context; }
public VideosController(Arma3EventContext context) { _context = context; }
public ApiEventsController(Arma3EventContext context, IApiTacMaps tacMaps) { _context = context; _tacMaps = tacMaps; }
public UsersController(Arma3EventContext context) { _context = context; }
public AdminMatchsController(Arma3EventContext context, IApiTacMaps tacMaps, IMapInfosService mapInfos) { _context = context; _tacMaps = tacMaps; _mapInfos = mapInfos; }
public AdminReviewPersistController(Arma3EventContext context, IConfiguration config, PersistService persist) { _context = context; _config = config; _persist = persist; }
public AuthenticationController(Arma3EventContext context) { _context = context; }
public AdminSquadsController(Arma3EventContext context) { _context = context; }
public AdminDocumentsController(Arma3EventContext context) { _context = context; }