//private const string SecretKey = "iNivDmHLpUA223sqsfhqGbMRdRj1PVkH"; // todo: get this from somewhere secure //private readonly SymmetricSecurityKey _signingKey = new SymmetricSecurityKey(Encoding.ASCII.GetBytes(SecretKey)); public AuthController(UserManager <ApplicationUser> userManager, IJwtFactory jwtFactory, IOptions <JwtIssuerOptions> jwtOptions, ISqlUnitOfWork sqlServerUow, SignInManager <ApplicationUser> signInManager, ApplicationDbContext ctx) { _userManager = userManager; _jwtFactory = jwtFactory; _jwtOptions = jwtOptions.Value; _signInManager = signInManager; _sqlServerUow = sqlServerUow; _ctx = ctx; _serializerSettings = new JsonSerializerSettings { Formatting = Formatting.Indented }; }
public SqlDataAccess(string connectionString, ISqlUnitOfWork unitOfWork) { if (string.IsNullOrWhiteSpace(connectionString)) { throw new ArgumentException($"Connection string is not valid: {connectionString}"); } if (unitOfWork != null) { UnitOfWork = unitOfWork; Connection = unitOfWork.GetConnection(connectionString) as SqlConnection; } else { Connection = new SqlConnection(connectionString); } }
public AlbumController(ISqlUnitOfWork unitOfWork) { _unitOfWork = unitOfWork; }
public UserProfileController( ISqlUnitOfWork sqlServerUow) { _sqlServerUow = sqlServerUow; }
public RegularSeasonWinsController(ISqlUnitOfWork sqlServerUow) { _sqlServerUow = sqlServerUow; }
public ClassroomManager(ISqlUnitOfWork unitOfWork) { _unitOfWork = unitOfWork; }
public GenericSqlRepository(ISqlUnitOfWork unitOfWork) { _unitOfWork = unitOfWork ?? throw new ArgumentNullException("unitOfWork"); _dbSet = _unitOfWork.GetSet <TEntity>(); }
public LanguageController(ISqlUnitOfWork sqlServerUow) { _sqlServerUow = sqlServerUow; }
public SeasonController(ISqlUnitOfWork sqlServerUow) { _sqlServerUow = sqlServerUow; }
public DivisionController( ISqlUnitOfWork sqlServerUow) { _sqlServerUow = sqlServerUow; }
public TeacherManager(ISqlUnitOfWork unitOfWork) { _unitOfWork = unitOfWork; }
public PowerRankingController(ISqlUnitOfWork sqlServerUow) { _sqlServerUow = sqlServerUow; }
public OldRepo(ISqlUnitOfWork unitOfWork) : base(unitOfWork) { }
public ScoreController(ISqlUnitOfWork sqlServerUow) { _sqlServerUow = sqlServerUow; }
public QBRatingController(ISqlUnitOfWork sqlServerUow) { _sqlServerUow = sqlServerUow; }
public PlayResultController(ISqlUnitOfWork sqlServerUow) { _sqlServerUow = sqlServerUow; }
public RefreshTokenController(ISqlUnitOfWork sqlServerUow) { _sqlServerUow = sqlServerUow; }
public SqlRepo(ISqlUnitOfWork unitOfWork) : base(unitOfWork) { }
public RecordController(ISqlUnitOfWork sqlServerUow) { _sqlServerUow = sqlServerUow; }
public WeekController(ISqlUnitOfWork sqlServerUow) { _sqlServerUow = sqlServerUow; }
public OffensivePlayController( ISqlUnitOfWork sqlServerUow) { _sqlServerUow = sqlServerUow; }
public NetCoreStackLocalizationController(ISqlUnitOfWork sqlUnitOfWork, LocalizationInMemoryCacheProvider cacheProvider) { _sqlUnitOfWork = sqlUnitOfWork; _cacheProvider = cacheProvider; }
protected EFCoreRepo(ISqlUnitOfWork unitOfWork) : base(unitOfWork) { }
public ExampleRepo(ISqlUnitOfWork unitOfWork) : base(unitOfWork) { }
public SuperbowlOddsController(ISqlUnitOfWork sqlServerUow) { _sqlServerUow = sqlServerUow; }
public FormationController( ISqlUnitOfWork sqlServerUow) { _sqlServerUow = sqlServerUow; }
public TurnoverDifferentialController(ISqlUnitOfWork sqlServerUow) { _sqlServerUow = sqlServerUow; }
public GenderController(ISqlUnitOfWork sqlServerUow) { _sqlServerUow = sqlServerUow; }
public CoachController(ISqlUnitOfWork sqlServerUow) { _sqlServerUow = sqlServerUow; }
public StudentManager(ISqlUnitOfWork unitOfWork) { _unitOfWork = unitOfWork; }