Exemple #1
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, TicketDBContext context)
        {
            // global cors policy
            app.UseCors(x => x
                        .AllowAnyOrigin()
                        .AllowAnyMethod()
                        .AllowAnyHeader());

            app.UseAuthentication();

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                app.UseHsts();
            }

            app.UseHttpsRedirection();

            //seed dataların yüklendiği kısım
            DbSeeder.SeedDb(context);

            app.UseMvc();
        }
Exemple #2
0
 public PermissionRequirement(IOptionsMonitor <ModuleAuthenticationOptions> options,
                              ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock, IDistributedCache cache, TicketDBContext db)
     : base(options, logger, encoder, clock)
 {
     Db    = db;
     Cache = cache;
 }
 public ReportController(IConfiguration _iConfig, TicketDBContext db, IDistributedCache cache)
 {
     Configuration = _iConfig;
     Db            = db;
     Cache         = cache;
     rootPath      = Configuration.GetValue <string>("APIURL");
 }
 public CategoryController(IConfiguration _iConfig, TicketDBContext db, IDistributedCache cache)
 {
     Configuration    = _iConfig;
     Db               = db;
     Cache            = cache;
     UploadedBulkFile = Configuration.GetValue <string>("FileUploadLocation");
     rootPath         = Configuration.GetValue <string>("APIURL");
 }
Exemple #5
0
 /// <summary>
 /// User Controller
 /// </summary>
 /// <param name="_iConfig"></param>
 public UserController(IConfiguration _iConfig, IDistributedCache cache, TicketDBContext db)
 {
     Configuration        = _iConfig;
     rootPath             = Configuration.GetValue <string>("APIURL");
     ProfileImg_Resources = Configuration.GetValue <string>("ProfileImg_Resources");
     ProfileImg_Image     = Configuration.GetValue <string>("ProfileImg_Image");
     Cache = cache;
     Db    = db;
 }
 public DashBoardController(IConfiguration _iConfig, TicketDBContext db, IDistributedCache cache)
 {
     Configuration        = _iConfig;
     Cache                = cache;
     Db                   = db;
     API_Url              = Configuration.GetValue <string>("APIURL");
     ProfileImg_Resources = Configuration.GetValue <string>("ProfileImg_Resources");
     ProfileImg_Image     = Configuration.GetValue <string>("ProfileImg_Image");
 }
Exemple #7
0
 public IssueTypeServices(IDistributedCache cache, TicketDBContext db)
 {
     Db    = db;
     Cache = cache;
 }
 public SubCategoryService(IDistributedCache cache, TicketDBContext db)
 {
     Db    = db;
     Cache = cache;
 }
 public FeaturePlanService(IDistributedCache cache, TicketDBContext db)
 {
     Db    = db;
     Cache = cache;
 }
 public TicketRepository(TicketDBContext _ticketDB)
 {
     ticketDB = _ticketDB;
 }
Exemple #11
0
 public UnitOfWork(TicketDBContext dbContext)
 {
     _dbContext = dbContext;
 }
 public HierarchyService(IDistributedCache cache, TicketDBContext db)
 {
     Db    = db;
     Cache = cache;
 }
 public DashBoardService(IDistributedCache cache, TicketDBContext db)
 {
     Db    = db;
     Cache = cache;
 }
Exemple #14
0
 public SecurityService(IDistributedCache cache, TicketDBContext db)
 {
     Db    = db;
     Cache = cache;
 }
Exemple #15
0
 public ErrorLogging(IDistributedCache cache, TicketDBContext db)
 {
     Db    = db;
     Cache = cache;
 }
Exemple #16
0
 public Ticket Find(int id)
 {
    var db = new TicketDBContext();
    return db.Tickets.Find(id);
 }
Exemple #17
0
 public IList<Ticket> FindAll()
 {
    var db = new TicketDBContext();
    return db.Tickets.ToList();
 }
Exemple #18
0
 public MasterServices(IDistributedCache cache, TicketDBContext db)
 {
     Db    = db;
     Cache = cache;
 }
Exemple #19
0
 public ModuleService(IDistributedCache cache, TicketDBContext db)
 {
     Db    = db;
     Cache = cache;
 }
Exemple #20
0
 public KnowlegeBaseService(IDistributedCache cache, TicketDBContext db)
 {
     Db    = db;
     Cache = cache;
 }
 public StoreUserService(IDistributedCache cache, TicketDBContext db)
 {
     Db    = db;
     Cache = cache;
 }
Exemple #22
0
 public CustomExceptionFilter(IConfiguration _iConfig, IDistributedCache cache, TicketDBContext db)
 {
     configuration = _iConfig;
     Db            = db;
     Cache         = cache;
 }
Exemple #23
0
 /// <summary>
 /// Designation
 /// </summary>
 /// <param name="_iConfig"></param>
 public DesignationController(IConfiguration _iConfig, IDistributedCache cache, TicketDBContext db)
 {
     Configuration = _iConfig;
     Cache         = cache;
     Db            = db;
 }
Exemple #24
0
 public CustomerService(IDistributedCache cache, TicketDBContext db)
 {
     Db    = db;
     Cache = cache;
 }
Exemple #25
0
 public ETSContext(IDistributedCache cache, TicketDBContext db)
 {
     //conn.ConnectionString = "server=192.168.11.19;userid=ticketing;password=Frv810FM#bBgI88;database=ticketing;";
     Db    = db;
     Cache = cache;
 }
Exemple #26
0
 public KnowledgeBaseController(IConfiguration _iConfig, TicketDBContext db, IDistributedCache cache)
 {
     Configuration = _iConfig;
     Db            = db;
     Cache         = cache;
 }
Exemple #27
0
 public NotificationService(IDistributedCache cache, TicketDBContext db)
 {
     Db    = db;
     Cache = cache;
 }
Exemple #28
0
 public TenantService(IDistributedCache cache, TicketDBContext db)
 {
     Db    = db;
     Cache = cache;
 }
 public MasterController(IConfiguration _iConfig, TicketDBContext db, IDistributedCache cache)
 {
     Configuration = _iConfig;
     Db            = db;
     Cache         = cache;
 }
Exemple #30
0
 public FileUploadService(IDistributedCache cache, TicketDBContext db)
 {
     Db    = db;
     Cache = cache;
 }