public VisitorsController(
     IVisitors userService,
     IMapper mapper)
 {
     _userService = userService;
     _mapper      = mapper;
 }
예제 #2
0
 public void Accept(IVisitors visitor)
 {
     foreach (DrawingElement e in _elements)
     {
         e.Accept(visitor);
     }
 }
예제 #3
0
        public PhotosController(IVisitors repo, IMapper mapper, IOptions <CloudinarySettings> cloudinaryConfig)
        {
            _cloudinaryConfig = cloudinaryConfig;
            _mapper           = mapper;
            _repo             = repo;

            Account acc = new Account(
                _cloudinaryConfig.Value.CloudName,
                _cloudinaryConfig.Value.ApiKey,
                _cloudinaryConfig.Value.ApiSecret
                );

            //We created the account instance!
            _cloudinary = new Cloudinary(acc);
        }
예제 #4
0
 public override void Accept(IVisitors visitor)
 {
     visitor.VisitCompositeElement(this);
 }
예제 #5
0
 public VisitorController(IVisitors context, ILogger <VisitorController> logger)
 {
     this.logger  = logger;
     this.context = context;
 }
예제 #6
0
 public override void Accept(IVisitors visitor)
 {
     visitor.VisitPrimitiveElement(this);
 }
예제 #7
0
 public abstract void Accept(IVisitors visitor);
예제 #8
0
 public VisitorController(DataContext context, IVisitors repo, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
     _repo    = repo;
 }