コード例 #1
0
 /// <summary>
 /// .ctor
 /// </summary>
 public SiteMapBuilder(IOptions <RootOptions> rootOptions,
                       IOurGardenRepository context)
 {
     _rootOptions     = rootOptions.Value;
     _context         = (context as OurGardenRepository).Context;
     _publicDirectory = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot");
 }
コード例 #2
0
 public OrderControllerService(IOurGardenRepository repository,
                               IEmailService emailService,
                               ILogger <OrderControllerService> logger)
 {
     _repository   = repository;
     _context      = (repository as OurGardenRepository).Context;
     _emailService = emailService;
     _logger       = logger;
 }
コード例 #3
0
 public GalleryControllerService(IOurGardenRepository repository,
                                 IPhotoSaver photoSaver,
                                 IPhotoEntityUpdater photoEntityUpdater)
 {
     _repository         = repository;
     _context            = (_repository as OurGardenRepository).Context;
     _photoSaver         = photoSaver;
     _photoEntityUpdater = photoEntityUpdater;
 }
コード例 #4
0
 public ProductControllerService(IOurGardenRepository repository,
                                 ILogger logger,
                                 IPhotoSaver photoSaver,
                                 IPhotoEntityUpdater photoEntityUpdater)
 {
     _repository         = repository;
     _context            = (repository as OurGardenRepository).Context;
     _logger             = logger;
     _photoSaver         = photoSaver;
     _photoEntityUpdater = photoEntityUpdater;
 }
コード例 #5
0
 /// <summary>
 /// .ctor
 /// </summary>
 public CategoryControllerService(ILogger <CategoryControllerService> logger,
                                  IOurGardenRepository repository,
                                  IPhotoSaver photoSaver,
                                  IPhotoEntityUpdater photoEntityUpdater) : base(repository,
                                                                                 photoSaver,
                                                                                 photoEntityUpdater)
 {
     _repository         = repository;
     _context            = (_repository as OurGardenRepository).Context;
     _logger             = logger;
     _photoSaver         = photoSaver;
     _photoEntityUpdater = photoEntityUpdater;
 }
コード例 #6
0
 public OurGardenRepository(OurGardenContext context)
 {
     Context = context;
 }