public MongoRepLog(string Usuario, IOptions <Models.AppSettings> appSettings)
        {
            _appSettings   = appSettings.Value;
            conexaoMongoDB = _appSettings.ConexaoMongoDB;
            var cliente = new MongoClient(conexaoMongoDB);

            Database         = cliente.GetDatabase(DataBaseName);
            UsuarioInstagram = Usuario;
        }
Exemple #2
0
 public MineModel(IOptions <Models.AppSettings> appSettings)
 {
     this.appSettings = appSettings.Value;
 }
 public FidelityBonusService(IFidelityBonusRepository fidelityBonusRepository, IOptions <Models.AppSettings> options)
 {
     this._repository  = fidelityBonusRepository;
     this._appSettings = options.Value;
 }
 public BookService(IBookRepository bookRepository, IOptions <Models.AppSettings> options)
 {
     this._repository  = bookRepository;
     this._appSettings = options.Value;
 }
 public OrderService(IOrderRepository orderRepository, IOptions <Models.AppSettings> options)
 {
     this._repository  = orderRepository;
     this._appSettings = options.Value;
 }
Exemple #6
0
 public IndexPageModel(IOptions <Models.AppSettings> appSettings)
 {
     this.appSettings = appSettings.Value;
 }
Exemple #7
0
 public OverviewModel(IOptions <Models.AppSettings> appSettings)
 {
     this.appSettings = appSettings.Value;
 }
Exemple #8
0
 public CustomerService(ICustomerRepository userRepository, IOptions <Models.AppSettings> options)
 {
     this._repository  = userRepository;
     this._appSettings = options.Value;
 }
Exemple #9
0
 public ListAllModel(IOptions <Models.AppSettings> appSettings)
 {
     this.appSettings = appSettings.Value;
 }
Exemple #10
0
 public PagamentoController(IOptions <Models.AppSettings> appSettings)
 {
     _settings    = appSettings;
     _appSettings = appSettings.Value;
 }
Exemple #11
0
 public DetailsModel(IOptions <Models.AppSettings> appSettings)
 {
     this.appSettings = appSettings.Value;
 }
 public AdminController(IOptions <Models.AppSettings> appSettings)
 {
     _settings    = appSettings;
     _appSettings = appSettings.Value;
 }
Exemple #13
0
 public AuthorService(IAuthorRepository authorRepository, IOptions <Models.AppSettings> options)
 {
     this._repository  = authorRepository;
     this._appSettings = options.Value;
 }
 public UserService(Data.Repositories.RepoWrappers.IRepoWrapper repoWrapper, IOptions <Models.AppSettings> appSettings)
 {
     _repoWrapper = repoWrapper;
     _appSettings = appSettings.Value;
 }
Exemple #15
0
 public FeedbackModel(IOptions <Models.AppSettings> appSettings)
 {
     this.appSettings = appSettings.Value;
 }
Exemple #16
0
 public RoleService(IRoleRepository roleRepository, IOptions <Models.AppSettings> options)
 {
     this._repository  = roleRepository;
     this._appSettings = options.Value;
 }
Exemple #17
0
 public ContentModel(IOptions <Models.AppSettings> appSettings)
 {
     this.appSettings = appSettings.Value;
 }
 public CategoryService(ICategoryRepository categoryRepository, IOptions <Models.AppSettings> options)
 {
     this._repository  = categoryRepository;
     this._appSettings = options.Value;
 }
Exemple #19
0
 public AuthenticateController(IOptions <Models.AppSettings> appSettings, IUsers users)
 {
     _users       = users;
     _appSettings = appSettings.Value;
 }
Exemple #20
0
 public JwtMiddleware(RequestDelegate del, IOptions <Models.AppSettings> options)
 {
     _next        = del;
     _appSettings = options.Value;
 }