//////////////////////////////////////////////////////////// // Constructors //////////////////////////////////////////////////////////// /// <inheritdoc /> /// <summary> /// Initialize a new instance of <see cref="T:WebApp.Controller.Api.ChartTemplateController" /> /// </summary> /// <param name="db"></param> /// <param name="plotTemplateService"></param> /// <param name="chartSettingProvider"></param> /// <param name="exporter"></param> /// <param name="selectProjectListQuery"></param> public PlotController( DqdvContext db, PlotTemplateService plotTemplateService, ChartSettingProvider chartSettingProvider, ChartExporter exporter, SelectProjectListQuery selectProjectListQuery) { _db = db; _plotTemplateService = plotTemplateService; _exporter = exporter; _selectProjectListQuery = selectProjectListQuery; _chartSettingProvider = chartSettingProvider; }
public ChartController( IStorage storage, DqdvContext db, ChartSettingProvider chartSettingProvider, PlotTemplateService plotTemplateService, Func <PlotType, ChartPlotterBase> chartPlotterFactory, ChartExporter exporter, SelectProjectListQuery selectProjectListQuery) { _storage = storage; _db = db; _chartSettingProvider = chartSettingProvider; _chartPlotterFactory = chartPlotterFactory; _exporter = exporter; _selectProjectListQuery = selectProjectListQuery; _plotTemplateService = plotTemplateService; }