Пример #1
0
 public DownloadService(CaffShopContext dbContext, IOptions <StorageConfiguration> storageConfiguration, ILogger <DownloadService> logger, ICanDownloadService canDownloadService)
 {
     this.DbContext          = dbContext;
     this.StorageConfig      = storageConfiguration.Value;
     this.Logger             = logger;
     this.CanDownloadService = canDownloadService;
 }
Пример #2
0
 public DetailsService(CaffShopContext context, ICanDownloadService canDownloadService, IIdentityService identityService, ILogger <DetailsService> logger)
 {
     this.context            = context;
     this.canDownloadService = canDownloadService;
     this.identityService    = identityService;
     this.logger             = logger;
 }
Пример #3
0
 public UploadService(CaffShopContext dbContext, IOptions <UploadConfiguration> uploadConfiguration, IOptions <StorageConfiguration> storageConfiguration, ILogger <UploadService> logger)
 {
     this.DbContext     = dbContext;
     this.UploadConfig  = uploadConfiguration.Value;
     this.StorageConfig = storageConfiguration.Value;
     this.Logger        = logger;
     try
     {
         Directory.CreateDirectory(StorageConfig.PreviewPath);
         Directory.CreateDirectory(StorageConfig.AnimationStorePath);
     } catch (Exception e)
     {
         Logger.LogError(e, "Sikertelen könyvtár létrehozás");
     }
 }
 public AnimationListService(CaffShopContext context, IIdentityService identityService)
 {
     this.context         = context;
     this.identityService = identityService;
 }
Пример #5
0
 public ReviewService(CaffShopContext context, IIdentityService identityService, ILogger <ReviewService> logger)
 {
     this.context         = context;
     this.identityService = identityService;
     this.logger          = logger;
 }
 public PurchaseService(CaffShopContext context, IIdentityService identityService, ILogger <PurchaseService> logger)
 {
     this.context         = context;
     this.identityService = identityService;
     this.logger          = logger;
 }
Пример #7
0
 public UserService(UserManager <User> userManager, CaffShopContext context)
 {
     this.userManager = userManager;
     this.context     = context;
 }
 public CanDownloadService(IHttpContextAccessor httpContextAccessor, CaffShopContext context)
 {
     this.httpContextAccessor = httpContextAccessor;
     this.context             = context;
 }