private bool LoadAggregatedAdvertSpecific() { _advertChannelClickProportionsPath = _logPath + "\\a_c_c_p.dat"; _advertChannelImpressionProportionsPath = _logPath + "\\a_c_i_p.dat"; _advertChannelClickProportionsExisting = LogFileReader.LoadAggregatedLogFile(_advertChannelClickProportionsPath, ref _advertChannelClickProportionsStream, _password); _advertChannelImpressionProportionsExisting = LogFileReader.LoadAggregatedLogFile(_advertChannelImpressionProportionsPath, ref _advertChannelImpressionProportionsStream, _password); if (_advertChannelClickProportionsExisting == "" && _advertChannelImpressionProportionsExisting == "") { return(false); } return(true); }
/// <summary> /// Locks and loads aggregated data if they exist, into four strings. /// For each log file not found, its lock is released /// </summary> private bool LoadAggregatedNonAdvertSpecific(string channelAggregatedLogsPath) { _dateClicksPerAssetPath = channelAggregatedLogsPath + "\\c_d_a.dat"; _dateImpressionsPerAssetPath = channelAggregatedLogsPath + "\\i_d_a.dat"; _dateClicksPerAssetExisting = LogFileReader.LoadAggregatedLogFile(_dateClicksPerAssetPath, ref _dateClicksPerAssetStream, _password); _dateImpressionsPerAssetExisting = LogFileReader.LoadAggregatedLogFile(_dateImpressionsPerAssetPath, ref _dateImpressionsPerAssetStream, _password); if (_dateClicksPerAssetExisting == "" && _dateImpressionsPerAssetExisting == "") { return(false); } return(true); }