Esempio n. 1
0
 public ValuesController(
     ICategoryService service,
     ConfigJWT configJWT,
     ICacheManager cacheManager,
     IHttpContextAccessor contextAccessor)
 {
     _contextAccessor = contextAccessor;
     _cacheManager    = cacheManager;
     _configJWT       = configJWT;
     _service         = service;
 }
Esempio n. 2
0
 public ManageService(
     UrlEncoder urlEncoder,
     IEmailService emailService,
     ConfigClientApp client,
     ConfigQRCode qr,
     ConfigJWT jwt
     )
 {
     _urlEncoder   = urlEncoder;
     _emailService = emailService;
     _client       = client;
     _qr           = qr;
     _jwt          = jwt;
 }
Esempio n. 3
0
 public AuthService(
     SignInManager <User> signInManager,
     IEmailService emailService,
     ConfigClientApp client,
     ConfigJWT jwt,
     IHostingEnvironment environment
     )
 {
     _environment   = environment;
     _signInManager = signInManager;
     _emailService  = emailService;
     _client        = client;
     _jwt           = jwt;
 }
        public void ConfigureServices(IServiceCollection services)
        {
            CorsConfig.Add_CorsConfig_Service(services);
            //var cors = new DefaultCorsPolicyService(_logger)
            //{
            //    AllowAll = true,

            //};
            string connectionString = Configuration.GetConnectionString("DefaultConnection");

            ConfigIdentity.Add_Identity_Service(services, connectionString);
            ConfigJWT.Add_ConfigJWTService(services, Configuration);
            services.AddMvc();
            SwaggerConfig.Add_SwaggerConfigService(services);
            ConfigRepositoryService.configReponsitory(services);
        }
Esempio n. 5
0
        public ManageService(
            UrlEncoder urlEncoder,
            IEmailService emailService,
            ConfigClientApp client,
            ConfigQRCode qr,
            ConfigJWT jwt,
            IHostingEnvironment hostingEnvironment

            )
        {
            _hostingEnvironment = hostingEnvironment;
            _urlEncoder         = urlEncoder;
            _emailService       = emailService;
            _client             = client;
            _qr  = qr;
            _jwt = jwt;
        }