Ejemplo n.º 1
0
        public LdapAuthenticationService(DBBakumContext db, IOptions <LdapConfig> config, RoleManager <IdentityRole> roleManager, UserManager <UserProfile> userManager) : base(db)
        {
            _config     = config.Value;
            _connection = new LdapConnection
            {
                SecureSocketLayer = false
            };

            this._roleManager = roleManager;
            this._userManager = userManager;
        }
Ejemplo n.º 2
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, DBBakumContext context)
        {
            app.UseCors("default");

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


            app.UseMvc();

            app.UseStaticFiles(new StaticFileOptions
            {
                FileProvider = new Microsoft.Extensions.FileProviders.PhysicalFileProvider(
                    Path.Combine(Directory.GetCurrentDirectory(), "aspnetcore_files")),
                RequestPath = "/staticFiles"
            });
        }
 public BantuanHukumRepository(DBBakumContext db, IOptions <EmailConfig> emailConfig) : base(db)
 {
     this.initialDataStatusPengaduan();
     this.emailConfig = emailConfig.Value;
 }
Ejemplo n.º 4
0
 public CoreRepository(DBBakumContext _db)
 {
     this.Db = _db;
 }