Exemplo n.º 1
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env, TransferDbContext dbContext)
        {
            dbContext.Database.Migrate();
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            // app.UseHttpsRedirection();

            app.UseRouting();

            app.UseAuthorization();

            app.UseSwagger();
            app.UseSwaggerUI(o => { o.SwaggerEndpoint("/swagger/v1/swagger.json", "Transfer Microservice V1"); });


            app.UseEndpoints(endpoints => { endpoints.MapControllers(); });

            ConfigureEventBus(app);
        }
 public AccountController(TransferDbContext tdbc)
 {
     _tdbc = tdbc;
 }
 public PartyController(TransferDbContext tdbc)
 {
     _tdbc = tdbc;
 }
Exemplo n.º 4
0
 public TransferLogNoSQLRepository(TransferDbContext ctx)
 {
     _ctx = ctx;
 }
Exemplo n.º 5
0
 public TransferRepository(TransferDbContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
 public AccountTransferRepository(TransferDbContext dbContext)
 {
     _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
 }
Exemplo n.º 7
0
 public TransferRepository(TransferDbContext db)
 {
     _db = db;
 }
 public TransferRepository(TransferDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Exemplo n.º 9
0
 public TransferRepository(TransferDbContext tdc)
 {
     _tdc = tdc;
 }
Exemplo n.º 10
0
 public TransferRepository(TransferDbContext transferDb)
 {
     _transferDb = transferDb;
 }
Exemplo n.º 11
0
 public TransferRepository(TransferDbContext _ctx)
 {
     ctx = _ctx;
 }
Exemplo n.º 12
0
 public TransferRepository(TransferDbContext transferDbContext)
 {
     this.transferDbContext = transferDbContext;
     transferLogs           = transferDbContext.Set <TransferLog>();
 }
Exemplo n.º 13
0
 public EmployeeTransferRepository(TransferDbContext context)
 {
     _context = context;
 }
 public TransferRepository(TransferDbContext transferDbContext)
 {
     _transferDbContext = transferDbContext;
 }
 public TransferController(TransferDbContext context)
 {
     _context = context;
 }
Exemplo n.º 16
0
 public TransferRepository(TransferDbContext context)
 {
     _context = context;
 }
 public TransferRepository(TransferDbContext transferContext)
 {
     _ctx = transferContext;
 }
Exemplo n.º 18
0
 public GeneralRepository(TransferDbContext DbContext)
 {
     this.DbContext = DbContext;
 }
Exemplo n.º 19
0
 public TransferRepository(TransferDbContext ctx)
 {
     _ctx = ctx;
     _ctx.Database.EnsureCreated();
 }
Exemplo n.º 20
0
 public TransferRepository(TransferDbContext ctx)
 {
     _ctx = ctx;
 }
 public TransferLogDAL(TransferDbContext ctx)
 {
     _ctx = ctx;
 }