public AccountRepository( IConfiguration connectionSettings, IAccountUpdatingSettings accountUpdatingSettings, IFilesUploadingSettings filesUploadingSettings ) { _connectionSettings = connectionSettings; _accountUpdatingSettings = accountUpdatingSettings; _filesUploadingSettings = filesUploadingSettings; }
public AccountRepository( IDalSettings dalSettings, IAccountUpdatingSettings accountUpdatingSettings, IFilesUploadingSettings filesUploadingSettings ) { _dalSettings = dalSettings; _accountUpdatingSettings = accountUpdatingSettings; _filesUploadingSettings = filesUploadingSettings; }
public AccountsController( IAccountService accountService, IMapper mapper, IJwtService jwtService, IFilesUploadingSettings filesUploadingSettings, IMemoryCache memoryCache, IProfileCachingSettings profileCachingSettings, IUserInfo userInfo ) { _accountService = accountService; _mapper = mapper; _jwtService = jwtService; _filesUploadingSettings = filesUploadingSettings; _memoryCache = memoryCache; _profileCachingSettings = profileCachingSettings; _userInfo = userInfo; }
public void Configure( IApplicationBuilder app, IFilesUploadingSettings filesUploadingSettings, IFrontendFilesSettings frontendFilesSettings ) { app.UseExceptionLogger(); app.UseStaticFiles(new StaticFileOptions { FileProvider = new PhysicalFileProvider(Path.Combine(filesUploadingSettings.StoragePath)), RequestPath = "/" + filesUploadingSettings.StaticFilesCatalogName }); app.UseStaticFiles(new StaticFileOptions() { FileProvider = new PhysicalFileProvider(Path.Combine(frontendFilesSettings.StoragePath)), RequestPath = "" }); app.UseRouting(); app.UseCors("CorsPolicy"); app.UseAuthentication(); app.UseAuthorization(); app.UseHttpsRedirection(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); app.UseSpa(spa => { spa.Options.SourcePath = Path.Combine(frontendFilesSettings.StoragePath); }); }