public GetQuarterlyReport( ConvertFromStringToDateTimeObject fromStringToDate, IGetData <TransactionModel> getData) { this._fromStringToDate = fromStringToDate; this._getData = getData; }
/// <summary> /// Initializes a new instance of the <see cref="AnimalDal"/> class. /// </summary> /// <param name="imapper">The imapper.</param> /// <param name="logger">The logger.</param> /// <param name="getAnimalRepository">The get animal repository.</param> /// <param name="crudAnimalRepository">The crud animal repository.</param> public AnimalDal(IMapper imapper, ILogger logger, IGetData <Animal> getAnimalRepository, ICrudBasic <Animal> crudAnimalRepository) { _imapper = imapper; _logger = logger; _getAnimalRepository = getAnimalRepository; _crudAnimalRepository = crudAnimalRepository; }
public GetInsideOutsideAirportData(IHttpClientFactory httpClientFactory, IConfiguration configuration, IGetOutsideData getOutsideData, IGetData getInsideData) { _httpClientFactory = httpClientFactory; _iconfiguration = configuration; _getOutsideData = getOutsideData; _getInsideData = getInsideData; }
public AnotherDataStore(IAddData addData, IGetData getData) { this.addData = addData; this.addData.DataAdded += (s, e) => DataAdded?.Invoke(s, e); this.getData = getData; this.getData.DataRetrieved += (s, e) => DataRetrieved?.Invoke(s, e); }
public WorldClickData(IGetData dataObject, bool canSwap, bool itemsAccessible, Point mousePoint) { DataObject = dataObject; Data = dataObject.GetData(); CanSwap = canSwap; ItemsAccessible = itemsAccessible; MousePoint = mousePoint; }
public DataController(IGetOutsideData getAllData, IGetData getData, IGetLatitudeLongitude getLatitudeLongitude, IGetInsideOutside getInsideOutsideData, IGetPlaceData getPlaceData) { _getAllData = getAllData; _getData = getData; _getLatitudeLongitude = getLatitudeLongitude; _getInsideOutsideData = getInsideOutsideData; _getPlaceData = getPlaceData; }
public GetTimeSeriesDataSet( ConvertFromStringToDateTimeObject fromStringToDate, ConvertFromDateTimeObjectsToString fromDateTimeToString, IGetData <TransactionModel> getData) { this._fromStringToDate = fromStringToDate; this._fromDateTimeToString = fromDateTimeToString; this._getData = getData; }
public DataController(IGetOutsideData getAllData, IGetData getData, IGetLatitudeLongitude getLatitudeLongitude, IGetInsideOutside getInsideOutsideData, IGetPlaceData getPlaceData, IGetDistanceTime getDistanceTime, IGetSearch getSearch) { _getAllData = getAllData; _getData = getData; _getLatitudeLongitude = getLatitudeLongitude; _getInsideOutsideData = getInsideOutsideData; _getPlaceData = getPlaceData; _getDistanceTime = getDistanceTime; _getSearch = getSearch; }
public SyncLocalData() { LocalData = LocalDataAccess.GetDataAccess(); LocalUpdateData = LocalDataAccess.UpdateDataAccess(); Interval = 1000; string UnitCode = Controller.GetInstance().Args.args.UnitCode; TUnit unit = Controller.GetInstance().dicUnit[UnitCode]; LocalXZBM = unit.UnitXZBM; }
public GetDataServiceTests() { runner = MongoDbRunner.Start(); mongo = new MongoService( new MongoClient(runner.ConnectionString), Options.Create(new MongoDBConfiguration() { DatabaseName = "TestMachine", EventCollection = "TestEvents" }), LoggerUtilsMoq.Logger <MongoService>() ); getData = new GetDataService(mongo, LoggerUtilsMoq.Logger <GetDataService>()); }
public DataController(IGetOutsideData getAllData, IGetData getData, IGetLatitudeLongitude getLatitudeLongitude, IGetInsideOutside getInsideOutsideData, IGetPlaceData getPlaceData, IGetDistanceTime getDistanceTime, ISetReminder setReminderData, IGetSearch getSearch, IGetDataAccordingToLayoverTime getDataAccordingToLayoverTime, IAllDataExchangethroughRedisCache allDataExchangethroughRedisCache) { _getAllData = getAllData; _getData = getData; _getLatitudeLongitude = getLatitudeLongitude; _getInsideOutsideData = getInsideOutsideData; _getPlaceData = getPlaceData; _getDistanceTime = getDistanceTime; _setReminderData = setReminderData; _getSearch = getSearch; _getDataAccordingToLayoverTime = getDataAccordingToLayoverTime; _allDataExchangethroughRedisCache = allDataExchangethroughRedisCache; }
private void AddDisplayPanel(IGetData dataObject, bool canSwap, Point point) { DisplayPanel d = new DisplayPanel(dataObject, exitImage, canSwap, point, myPanel.Width, myPanel.Height); displayPanels.Add(d); myPanel.Controls.Add(d.Panel); d.Close += RemoveDisplayPanel; d.Swap += DisplayPanelSwap; d.Panel.MouseMove += DisplayPanel_MouseMove; d.MouseDown += DisplayPanel_MouseDown; // Deactivate the old panel, reassign the active panel, then activate the new panel. if (activeDisplayPanel != null) { activeDisplayPanel.Deactivate(); } activeDisplayPanel = d; activeDisplayPanel.Activate(); }
public DisplayPanel(IGetData dataObject, Bitmap b, bool canSwap, Point point, int parentWidth, int parentHeight) { Panel = new Panel() { Visible = false, BackColor = Color.FromArgb(100, 235, 228, 200), }; // 255, 248, 220 Panel.MouseDown += Panel_MouseDown; DataObject = dataObject; displaySwapButton = canSwap; this.parentWidth = parentWidth; this.parentHeight = parentHeight; this.point = point; exitImage = b; IndexPosition = DataObject.GetItemIndex(); Indexable = IndexPosition != -1; exitButton = new Button() { Image = b }; exitButton.Click += ExitButton_Click; markLabel = new Label() { Size = new Size(10, 10), Text = "*", BackColor = Color.Transparent, Visible = Indexable }; Panel.Controls.Add(markLabel); DataObject.UpdateElement += DataObject_UpdateElement; DataObject.CancelData += DataObject_CancelData; DrawPanel(); }
static async void StartApp() { IGetData _dataService = AppConfig.getDataService; ISendReport _reportService = AppConfig.sendReportService; await Task.Factory.StartNew( () => { while (AppConfig.electricityIsFine) { try { _reportService.SendReport(_dataService.GetData().ToReport()); } catch (Exception ex) { Console.WriteLine($"Some app error happens: {ex.ToString()}"); } Task.WaitAll(Task.Delay(AppConfig.delay_ms)); } }); }
public XMLFileLoader(IGetData <List <ItemModel> > DataSource) { this.DataSource = DataSource; }
/// <summary> /// Initializes a new instance of the <see cref="AnimalManager"/> class. /// </summary> /// <param name="imapper">The imapper.</param> /// <param name="logger">The logger.</param> /// <param name="getAnimalRepository">The get animal repository.</param> /// <param name="crudAnimalRepository">The crud animal repository.</param> public AnimalManager(IMapper imapper, ILogger <AnimalManager> logger, IGetData <Animal> getAnimalRepository, ICrudBasic <Animal> crudAnimalRepository) { _logger = logger; _animalDal = new AnimalDal(imapper, logger, getAnimalRepository, crudAnimalRepository); }
public FileUploadController(IGetData data, IValidateData invalidator) { this.data = data; this.invalidator = invalidator; }
public DefaultBuilder(IGetData data, IInteract interact) : base(data, interact) { }
public ProductsController(IGetData getData) { _getData = getData; }
public DataRatesBusinessLogic(IGetData getData, ISetRedis setDataRates) { logger.Debug(System.Reflection.MethodBase.GetCurrentMethod().Name); this.getData = getData; this.setDataRates = setDataRates; }
public HttpHelper(IGetData dataGetter, IPostData dataPoster) { _dataGetter = dataGetter; _dataPoster = dataPoster; }
private UserManager() { getData = new DataService <User>(); setData = new DataService <User>(); logger = NLog.LogManager.GetCurrentClassLogger(); }
public HomeController(IGetData getFIDSData) { _getFIDSData = getFIDSData; }
public GetDatabaseVersion(IGetData getData) { _getData = getData; }
public HelloWorldController(IGetData getData) { _getData = getData; }
public ContactModel(ILogger <ContactModel> logger, IConfiguration config, IGetData getData) { _logger = logger; _config = config; _getData = getData; }
public MailClientSender(IGetData <bool> FileChecker, IGetData <Params> ParametersReader, ISetData <string> Logger) { fileExists = FileChecker.GetData(); par = ParametersReader.GetData(); logger = Logger; }
public GalleryModel(IConfiguration config, IGetData getData) { _config = config; _getData = getData; }
public ServicesModel(ILogger <ServicesModel> logger, IConfiguration config, IGetData getData) { _logger = logger; _config = config; _getData = getData; }
public static List <object> GetValues(this IGetData dataObject) { return(dataObject.GetData().DataList.Select(pair => pair.Item2).ToList()); }
public DemoCustomBuilder(IGetData data, IInteract interact) : base(data, interact) { }
public static void GetDataFromDb(IGetData access) { //Log some staff Console.WriteLine("GetDataFromDb"); access.GetData(); }