public VisitorsController( IVisitors userService, IMapper mapper) { _userService = userService; _mapper = mapper; }
public void Accept(IVisitors visitor) { foreach (DrawingElement e in _elements) { e.Accept(visitor); } }
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); }
public override void Accept(IVisitors visitor) { visitor.VisitCompositeElement(this); }
public VisitorController(IVisitors context, ILogger <VisitorController> logger) { this.logger = logger; this.context = context; }
public override void Accept(IVisitors visitor) { visitor.VisitPrimitiveElement(this); }
public abstract void Accept(IVisitors visitor);
public VisitorController(DataContext context, IVisitors repo, IMapper mapper) { _context = context; _mapper = mapper; _repo = repo; }