Exemple #1
0
        private void AppendAggregatedDataAdvertSpecific()
        {
            _advertChannelClickProportionsNew      = LogFlattener.FlattenAdvertChannelOperationProportions(_advertChannelClickProportionsSet);
            _advertChannelImpressionProportionsNew = LogFlattener.FlattenAdvertChannelOperationProportions(_advertChannelImpressionProportionsSet);
            _advertChannelImpressionProportionsAll = _advertChannelImpressionProportionsExisting + _advertChannelImpressionProportionsNew;
            _advertChannelClickProportionsAll      = _advertChannelClickProportionsExisting + _advertChannelClickProportionsNew;

            try
            {
                Locker.WriteEncryptString(ref _advertChannelImpressionProportionsStream, _advertChannelImpressionProportionsAll, _password);
            }
            catch (Exception ex)
            {
                _logger.WriteError(ex);
            }

            try
            {
                Locker.WriteEncryptString(ref _advertChannelClickProportionsStream, _advertChannelClickProportionsAll, _password);
            }
            catch (Exception ex)
            {
                _logger.WriteError(ex);
            }

            _advertChannelImpressionProportionsAll      = "";
            _advertChannelImpressionProportionsExisting = "";
            _advertChannelImpressionProportionsNew      = "";
            _advertChannelClickProportionsAll           = "";
            _advertChannelClickProportionsExisting      = "";
            _advertChannelClickProportionsNew           = "";
        }