示例#1
0
 public FileServices(IFileProvider fileProvider, ILogger <FileServices> logger, IWebHostEnvironment hostingEnvironment, IShortUrlOperation shortUrlOperation, UserManager <ApplicationUser> userStore, Url_Short.Data.ApplicationDbContext dbContext)
 {
     _fileProvider      = fileProvider;
     _logger            = logger;
     contentRootPath    = hostingEnvironment.ContentRootPath;
     _shortUrlOperation = shortUrlOperation;
     _userStore         = userStore;
     _dbContext         = dbContext;
 }
示例#2
0
 public UrlController(IShortUrlOperation shortUrlOperation, ILogger <UrlController> logger, IFileOperations fileOperations)
 {
     _shortUrlOperation = shortUrlOperation;
     _logger            = logger;
     _fileOperations    = fileOperations;
 }