public EfCoreCourseService(ILogger <EfCoreCourseService> logger, IImagePersister imagePersister, MyCourseDbContext dbContext, IOptionsMonitor <CoursesOptions> coursesOptions)
 {
     this.imagePersister = imagePersister;
     this.coursesOptions = coursesOptions;
     this.logger         = logger;
     this.dbContext      = dbContext;
 }
 public EfCoreCourseService(ILogger <EfCoreCourseService> logger, IImagePersister imagePersister, MyCourseDbContext dbContext, IOptionsMonitor <CoursesOptions> coursesOptions) //per esprimere la dipendenza del servizio applicativo dal servizio infrastutturale (MyCourseDbContext)
 {
     this.coursesOptions = coursesOptions;
     this.logger         = logger;
     this.imagePersister = imagePersister;
     this.dbContext      = dbContext;
 }
Beispiel #3
0
 public AdoNetCourseService(ILogger <AdoNetCourseService> logger, IDatabaseAccessor db, IImagePersister imagePersister, IOptionsMonitor <CoursesOptions> coursesOptions)
 {
     this.imagePersister = imagePersister;
     this.coursesOptions = coursesOptions;
     this.logger         = logger;
     this.db             = db;
 }
Beispiel #4
0
 public AdoNetPasswordService(ILogger <AdoNetPasswordService> log, IDatabaseAccessor db, IImagePersister par_ImagePersister, IOptionsMonitor <PasswordsOptions> OpzioniPassword)
 {
     this.par_ImagePersister = par_ImagePersister;
     this.OpzioniPassword    = OpzioniPassword;
     this.log = log;
     this.db  = db;
 }
 public AdoNetCourseService(ILogger <AdoNetCourseService> logger, IDatabaseAccessor db, IImagePersister imagePersister, IHttpContextAccessor httpContextAccessor, IEmailClient emailClient, IOptionsMonitor <CoursesOptions> coursesOptions)
 {
     this.imagePersister      = imagePersister;
     this.coursesOptions      = coursesOptions;
     this.logger              = logger;
     this.emailClient         = emailClient;
     this.httpContextAccessor = httpContextAccessor;
     this.db = db;
 }
Beispiel #6
0
 public EfCoreCourseService(IHttpContextAccessor httpContextAccessor, ILogger <EfCoreCourseService> logger, IEmailClient emailClient, IImagePersister imagePersister, MyCourseDbContext dbContext, IOptionsMonitor <CoursesOptions> coursesOptions)
 {
     this.httpContextAccessor = httpContextAccessor;
     this.imagePersister      = imagePersister;
     this.coursesOptions      = coursesOptions;
     this.logger      = logger;
     this.dbContext   = dbContext;
     this.emailClient = emailClient;
 }
 public EFCorePasswordService(ILogger <AdoNetPasswordService> log,
                              PasswordDbContext dbContext,
                              IImagePersister par_ImagePersister,
                              IOptionsMonitor <PasswordsOptions> OpzioniPassword,
                              IHttpContextAccessor par_HttpContextAccessor)
 {
     this.par_ImagePersister      = par_ImagePersister;
     this.OpzioniPassword         = OpzioniPassword;
     this.par_HttpContextAccessor = par_HttpContextAccessor;
     this.log       = log;
     this.dbContext = dbContext;
 }
 public EfCoreCourseService(
     IHttpContextAccessor httpContextAccessor,
     ILogger <EfCoreCourseService> logger,
     IEmailClient emailClient,
     IImagePersister imagePersister,
     IPaymentGateway paymentGateway,
     MyCourseDbContext dbContext,
     LinkGenerator linkGenerator,
     ITransactionLogger transactionLogger,
     IOptionsMonitor <CoursesOptions> coursesOptions)
 {
     this.httpContextAccessor = httpContextAccessor;
     this.imagePersister      = imagePersister;
     this.paymentGateway      = paymentGateway;
     this.coursesOptions      = coursesOptions;
     this.logger            = logger;
     this.dbContext         = dbContext;
     this.linkGenerator     = linkGenerator;
     this.transactionLogger = transactionLogger;
     this.emailClient       = emailClient;
 }
 public AdoNetCourseService(
     ILogger <AdoNetCourseService> logger,
     IDatabaseAccessor db,
     IImagePersister imagePersister,
     IHttpContextAccessor httpContextAccessor,
     IEmailClient emailClient,
     IOptionsMonitor <CoursesOptions> coursesOptions,
     IPaymentGateway paymentGateway,
     LinkGenerator linkGenerator,
     ITransactionLogger transactionLogger)
 {
     this.imagePersister      = imagePersister;
     this.coursesOptions      = coursesOptions;
     this.logger              = logger;
     this.emailClient         = emailClient;
     this.httpContextAccessor = httpContextAccessor;
     this.db                = db;
     this.paymentGateway    = paymentGateway;
     this.linkGenerator     = linkGenerator;
     this.transactionLogger = transactionLogger;
 }
 /// <summary>
 /// Constructor accepting alternate class for image persistence
 /// </summary>
 public ImageManager(IImagePersister imagePersister)
 {
     ImagePersister = imagePersister;
 }
 /// <summary>
 /// Default constructor using default Amazon S3 cloud blog storage
 /// </summary>
 public ImageManager()
 {
     ImagePersister = new AwsS3ImagePersister();
 }
 public PastryService(ILogger <PastryService> logger, IDatabaseAccessor db, IImagePersister imagePersister)
 {
     this.imagePersister = imagePersister;
     this.logger         = logger;
     this.db             = db;
 }
Beispiel #13
0
 /// <summary>
 /// Constructor accepting alternate class for image persistence
 /// </summary>
 public ImageManager(IImagePersister imagePersister)
 {
     ImagePersister = imagePersister;
 }
Beispiel #14
0
 /// <summary>
 /// Default constructor using default Amazon S3 cloud blog storage
 /// </summary>
 public ImageManager()
 {
     ImagePersister = new AwsS3ImagePersister();
 }