Ejemplo n.º 1
0
        public Runner(MTGContext CardContex)
        {
            _context = CardContex;

            var handler = new HttpClientHandler
            {
                ServerCertificateCustomValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true
            };

            client             = new HttpClient(handler);
            client.BaseAddress = new Uri(@"https://api.magicthegathering.io/v1");
            client.DefaultRequestHeaders.Accept.Clear();
            client.DefaultRequestHeaders.Accept.Add(
                new MediaTypeWithQualityHeaderValue("application/json"));
        }
 public UserService(MTGContext context)
 {
     _context = context;
 }
Ejemplo n.º 3
0
 public CardsController(MTGContext context)
 {
     _context = context;
 }
Ejemplo n.º 4
0
 public UserController(MTGContext context, IConfiguration configuration)
 {
     _context       = context;
     _configuration = configuration;
     _authService   = new JwtService(_configuration);
 }